feat: get phone
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import Taro from '@tarojs/taro';
|
||||
|
||||
export const isDev = () => process.env.NODE_ENV === 'development';
|
||||
// export const isDev = () => true;
|
||||
|
||||
export const isIPhone = (() => {
|
||||
const info = Taro.getSystemInfoSync();
|
||||
|
||||
@ -8,3 +8,9 @@ export const postCertification = async (data: ICertificationRequest) => {
|
||||
await requestUserInfo();
|
||||
return result;
|
||||
};
|
||||
|
||||
export const getPhone = async(code: string): Promise<{phoneNumber: string}> => {
|
||||
const result = await http.post<{ code :string }>(API.GET_PHONE, { data: {code} });
|
||||
return result;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user