需求文档:![[【kerry+对接用】C端帮跑腿及个人中心的详细说明.pdf]] 路径:src/pages/tabbar/home/components/funcs-card.vue 改动内容 ```js try { const restUrlRobot = await getRobotSign( this.$store.state.lbsDefault.projectId, pageType ); let urlSend = encodeURIComponent(restUrlRobot.data); // #ifdef MP-WEIXIN let commonParams = '' if(urlSend) { commonParams = decodeURIComponent(urlSend).replace(/.*\?(.*)/g, '$1') } // eslint-disable-next-line no-console console.log(307, commonParams) // 如果是扫码自提柜 if (this.yogoOptions.is_yogo_locker === 'true') { commonParams = `${commonParams}&is_yogo_locker=true&site_uid${this.yogoOptions.site_uid}&locker_id=${this.yogoOptions.locker_id}` } // 机器人送餐 // eslint-disable-next-line uni.openEmbeddedMiniProgram({ // @ts-ignore appId: 'wx3f105702c5a7b834', path: 'pages/token-login/index?' + commonParams, envVersion: 'trial', success: () => {}, fail: (e: any) => { console.log(312, e); }, }) // return false // #endif // uni.navigateTo({ // url: `/pages/common/webview/webview?url=${urlSend}`, // }); } catch (error: any) { this.showToast(error?.message ?? t('apis.request.error')); } ``` node_modules/@dcloudio/types/uni-app/uni.d.ts 修改类型:openEmbeddedMiniProgram 不被支持 发版流程 ![[Pasted image 20220927122529.png|500]] 楼宇站点信息 ![[Pasted image 20220928195513.png|350]] ## 前端生成签名 ``` Date.parse(new Date())/1000 eslint-disable-next-line const timestamp = Math.floor(new Date().getTime() / 1000) const sign = this.getYogoSign({ 'timestamp': timestamp, 'app': 'delivery', 'enterprise_id': 1821, 'enterprise_building_ids': 759, 'enterprise_user_id': '8a888aea82c9ac970182ecfa259a0ddf' }, '60e3c14e811f4b1c81c02811a7cce10b') // eslint-disable-next-line no-console ``` 前海授权:https://dev-gateway-kip.kerryonvip.com/api/robot-integration/v1/robot/auth?projectId=192&projectName=%E5%89%8D%E6%B5%B7%E5%98%89%E9%87%8C%E4%B8%AD%E5%BF%83&supplier=undefined 前海嘉里中心 上海授权机器人回收:"https://qa-apim.kerryplus.com/c/api/robot-integration/v1/robot/auth?projectId=KEC3&projectName=上海企业中心&supplier=YOGO_RECOVERY" ### 与YOGO对接文档 文档: ![[Kerry+ 原生 App 对接.pdf]] 密钥: ![[Pasted image 20220929153608.png|800]] 1、前海这边的办公楼与公寓用户 区分授权的话,需要后端进行改造,在前端是无法单独实现的。这个在后端 https://dev-gateway-kip.kerryonvip.com/api/robot-integration/v1/robot/auth-list ``` 1. id: 2816 2. projectId: "192" 3. projectName: "前海嘉里中心" 4. supplier: "YOGO_RECOVERY" ``` https://dev-gateway-kip.kerryonvip.com/api/robot-integration/v1/robot/auth?projectId=192&projectName=前海嘉里中心&supplier=YOGO_FOOD_DELIVERY 取餐柜:is_yogo_locker=true&site_uid=564&locker_id=1234 ### 体验版小程序携带参数 ![[Pasted image 20221008120238.png]] ### 扫码暂存柜整体流程 ![[Pasted image 20221009154901.png]] ### 机器人发版前开关 ![[Pasted image 20221009232246.png]] https://dev-gateway-kip.kerryonvip.com/swagger-ui.html?urls.primaryName=robot-integration-service#/rest-point-service-impl/parkingOrderSwitchBjUsingPOST_7 ![[Pasted image 20221009232258.png]] ``` 当返回体不为空,并且不是常见的空类型的字符串格式,才会展示新版本的功能 res.data && !/null|undefined|false|-|0/g.test(res.data) ? true : false ```