diff --git a/pages/addJob/index.vue b/pages/addJob/index.vue index 0907953..bfbcf79 100644 --- a/pages/addJob/index.vue +++ b/pages/addJob/index.vue @@ -38,7 +38,7 @@
@@ -313,7 +313,7 @@ }, onShow() { let that = this; - + console.log('==============',this.G.store()) if (uni.getStorageSync("apply-token")) { that.checkRecordingPermission(); @@ -558,7 +558,7 @@ uni.setStorageSync('test_file', audioChunks.join(',')) uni.setStorageSync('btn_form', 1) - uni.setStorageSync('robot_id', '7491244881596809243') + uni.setStorageSync('robot_id', that.G.store().coziID) uni.setStorageSync('isExecute',1) uni.navigateTo({ url: '/root/chat/index?cid=&form=audiodata', @@ -824,7 +824,7 @@ uni.hideLoading(); uni.setStorageSync('ls-chat-text', $sendMessage) $sendMessage = ''; - uni.setStorageSync('robot_id', '7491244881596809243') + uni.setStorageSync('robot_id', that.G.store().coziID) uni.setStorageSync('isExecute',1) uni.navigateTo({ url: '/root/chat/index?cid=&form=msgdata&stip=' + $type @@ -852,7 +852,7 @@ }, goHistory($form = '') { let that = this; - uni.setStorageSync('robot_id', '7491244881596809243') + uni.setStorageSync('robot_id', that.G.store().coziID) uni.setStorageSync('isExecute',1) uni.navigateTo({ url: "/root/chat/index?cid=&form=viwdata", @@ -860,7 +860,7 @@ }, goChatDetail($item = '') { let that = this; - uni.setStorageSync('robot_id', $item.robotId) + uni.setStorageSync('robot_id', that.G.store().coziID) let _title = $item.title; if($item.title == '智能匹配'){ _title = ''; diff --git a/root/chat/index.vue b/root/chat/index.vue index b6308a9..5ad9a25 100644 --- a/root/chat/index.vue +++ b/root/chat/index.vue @@ -556,7 +556,8 @@ }) // that.list = []; that.G.Post(that.api.chat_getConversationld, { - robotId:uni.getStorageSync('robot_id') + robotId:uni.getStorageSync('robot_id'), + agencyId:uni.getStorageSync("apply-agencyId") }, (res) => { uni.hideLoading(); that.talkId = res; @@ -2017,6 +2018,7 @@ params['messageType'] = 98; } params.robotId = uni.getStorageSync('robot_id') + params.agencyId = uni.getStorageSync('apply-agencyId') that.G.Post( that.api.chat_addHistory, params,(res) => { that.handleRecordJobEnd(); diff --git a/utils/common.js b/utils/common.js index fd966dc..7ebe5e9 100644 --- a/utils/common.js +++ b/utils/common.js @@ -9,6 +9,7 @@ let data = { v3BaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/v3/", // cdn图片公共前缀路径 fadanBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/", loginText: '请登录', + coziID:'7537572244600471579', // #ifdef MP-WEIXIN version: uni.getAccountInfoSync().miniProgram.version || "1.0.16", // #endif