Commit 78e03380 by maolipeng

fix:debugger

parent c28f4550
...@@ -15,7 +15,8 @@ import Service from '@/common/js/service'; ...@@ -15,7 +15,8 @@ import Service from '@/common/js/service';
export default class WechatApi { export default class WechatApi {
static async initConfig(params = { isAgentConfig: false, url: '' }) { static async initConfig(params = { isAgentConfig: false, url: '' }) {
if(Platform.isWorkWx()){ if(Platform.isWorkWx()){
return Service.Hades('anon/hades/getWxCorpJSAPISignature', { console.log("1111111111111111")
Service.Hades('anon/hades/getWxCorpJSAPISignature', {
storeId: User.getStoreId(), storeId: User.getStoreId(),
url: params.url, url: params.url,
}).then((result) => { }).then((result) => {
...@@ -29,6 +30,7 @@ export default class WechatApi { ...@@ -29,6 +30,7 @@ export default class WechatApi {
signature: res.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法 signature: res.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法
jsApiList: ['chooseImage', 'shareToExternalContact', 'selectExternalContact', 'selectEnterpriseContact'], jsApiList: ['chooseImage', 'shareToExternalContact', 'selectExternalContact', 'selectEnterpriseContact'],
}).then(() => { }).then(() => {
console.log("2222222222222222222222")
if (params.isAgentConfig) { if (params.isAgentConfig) {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
Service.Hades('anon/hades/getWxWorkJSAPISignature', { Service.Hades('anon/hades/getWxWorkJSAPISignature', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment