You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
668 B
24 lines
668 B
import constant from "../../utils/constant";
|
|
import { request } from "../../utils/request";
|
|
import { BASE_URL ,genToken} from "../../utils/util"
|
|
|
|
interface IResult {
|
|
data:{success:boolean,return_val:string,message:string},
|
|
errMsg:string,
|
|
statusCode:number
|
|
}
|
|
const getCurrentUser = async (wechatID:string)=>{
|
|
let token = genToken(wechatID);
|
|
let params = {}
|
|
params.name='GetUserInfo'
|
|
params.token = token
|
|
params.parameters=""
|
|
params = JSON.stringify(params)
|
|
console.log(params)
|
|
let res =await request({url: BASE_URL + 'api/users/FunctionCall/', method: 'POST',data:params })
|
|
console.log(res)
|
|
return res
|
|
|
|
}
|
|
|
|
export default { getCurrentUser } |