feat: 个人app登录校验[不需要手机号]
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Toast } from "@antmjs/vantui";
|
||||
import Taro from "@tarojs/taro";
|
||||
import { getCurrentInstance } from "@tarojs/taro";
|
||||
import {type} from '../../config'
|
||||
|
||||
// 数据库环境
|
||||
// const db: any = Taro.cloud.database({
|
||||
@@ -211,8 +212,14 @@ export const phoneLogin = async () => {
|
||||
resolve(true)
|
||||
return true;
|
||||
} else {
|
||||
resolve(false)
|
||||
return false;
|
||||
if(type==='people'){
|
||||
resolve(true)
|
||||
return true;
|
||||
}else{
|
||||
resolve(false)
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user