|
|
import config from '../common/config';
|
|
|
import api from '../common/create-api';
|
|
|
|
|
|
module.exports = {
|
|
|
getWechatShareCode(params) {
|
|
|
return api.get('', Object.assign({
|
|
|
method: 'app.passport.getWechatShareCode'
|
|
|
}, params), {
|
|
|
defaults: {
|
|
|
baseURL: config.yohoApi
|
|
|
}
|
|
|
// return api.get('/erp/wechatCs/getWechatShareCode', params);
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
return resolve({
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": "db1a9ef9f609c0cd70",
|
|
|
"md5": "3f4552cccfaefc99e16847cc63b5402e",
|
|
|
"message": "操作成功"
|
|
|
});
|
|
|
})
|
|
|
},
|
|
|
getWechatConsultant(params) {
|
|
|
// api.get('/erp/wechatCs/getWechatConsultant', params);
|
|
|
// return api.get('/erp/wechatCs/getWechatConsultant', params);
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
return resolve({
|
...
|
...
|
@@ -34,7 +37,7 @@ module.exports = { |
|
|
});
|
|
|
},
|
|
|
getUserInfo(params) {
|
|
|
// api.get('/erp/wechatCs/getUserInfo', params);
|
|
|
// return api.get('/erp/wechatCs/getUserInfo', params);
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
return resolve({
|
...
|
...
|
@@ -55,7 +58,7 @@ module.exports = { |
|
|
});
|
|
|
},
|
|
|
bindWechatCSAndUser(params) {
|
|
|
// api.get('/erp/wechatCs/bindWechatCSAndUser', params);
|
|
|
// return api.get('/erp/wechatCs/bindWechatCSAndUser', params);
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
return resolve({
|
...
|
...
|
@@ -68,7 +71,7 @@ module.exports = { |
|
|
});
|
|
|
},
|
|
|
updateUserReminder(params) {
|
|
|
// api.get('/erp/wechatCs/updateUserReminder', params);
|
|
|
// return api.get('/erp/wechatCs/updateUserReminder', params);
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
return resolve({
|
...
|
...
|
@@ -81,7 +84,7 @@ module.exports = { |
|
|
});
|
|
|
},
|
|
|
getUserUid(params) {
|
|
|
// api.get('/erp/wechatCs/getUserUid', params);
|
|
|
// return api.get('/erp/wechatCs/getUserUid', params);
|
|
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
return resolve({
|
...
|
...
|
|