|
@@ -3,16 +3,23 @@ import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
* queryUserInfoByPhone
|
|
|
- * @param {*} userMobile
|
|
|
- * @param {*} data
|
|
|
- * @returns
|
|
|
+ * @description 微信端, PC 用
|
|
|
*/
|
|
|
-export function queryUserInfoByPhone(userMobile, data) {
|
|
|
- return request({
|
|
|
- url: `api/wallet/wechat/front/integral/info?userMobile=${userMobile}`,
|
|
|
- method: 'post',
|
|
|
- data: data,
|
|
|
- })
|
|
|
+export function queryUserInfoByPhone(data) {
|
|
|
+ const urlParams = `userMobile=${data.userMobile}`
|
|
|
+ if (data.platform === 'WEIXIN') {
|
|
|
+ return request({
|
|
|
+ url: `api/wallet/wechat/front/integral/info?${urlParams}`,
|
|
|
+ method: 'post',
|
|
|
+ data: data,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return request({
|
|
|
+ url: `api/wallet/web/integral/info?${urlParams}`,
|
|
|
+ method: 'post',
|
|
|
+ data: data,
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|