ソースを参照

2022_11_01_17:14

John-Hong 2 年 前
コミット
a3b42e7eec
6 ファイル変更52 行追加51 行削除
  1. BIN
      .DS_Store
  2. 24 0
      .gitignore
  3. 22 19
      .obsidian/workspace.json
  4. 4 0
      README.md
  5. 2 2
      任务/yogo小程序对接/说明.md
  6. 0 30
      未命名/未命名.md

BIN
.DS_Store


+ 24 - 0
.gitignore

@@ -0,0 +1,24 @@
+.DS_Store
+node_modules/
+unpackage/
+dist/
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Editor directories and files
+.project
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw*
+*.DS_Store*

+ 22 - 19
.obsidian/workspace.json

@@ -11,15 +11,22 @@
             "id": "46e65f1f0975317c",
             "type": "leaf",
             "state": {
-              "type": "markdown",
+              "type": "image",
               "state": {
-                "file": "任务/yogo小程序对接/说明.md",
-                "mode": "source",
-                "source": true
+                "file": "任务/yogo小程序对接/Pasted image 20221008120238.png"
               }
             }
+          },
+          {
+            "id": "1e55c49abe36a6e0",
+            "type": "leaf",
+            "state": {
+              "type": "empty",
+              "state": {}
+            }
           }
-        ]
+        ],
+        "currentTab": 1
       }
     ],
     "direction": "vertical"
@@ -85,7 +92,6 @@
             "state": {
               "type": "backlink",
               "state": {
-                "file": "任务/yogo小程序对接/说明.md",
                 "collapseAll": true,
                 "extraContext": false,
                 "sortOrder": "alphabetical",
@@ -102,7 +108,6 @@
             "state": {
               "type": "outgoing-link",
               "state": {
-                "file": "任务/yogo小程序对接/说明.md",
                 "linksCollapsed": false,
                 "unlinkedCollapsed": true
               }
@@ -124,9 +129,7 @@
             "type": "leaf",
             "state": {
               "type": "outline",
-              "state": {
-                "file": "任务/yogo小程序对接/说明.md"
-              }
+              "state": {}
             }
           }
         ],
@@ -137,17 +140,17 @@
     "width": 300,
     "collapsed": true
   },
-  "active": "46e65f1f0975317c",
+  "active": "1e55c49abe36a6e0",
   "lastOpenFiles": [
-    "任务/yogo小程序对接/嘉里 Kerry+ 对接方案(1).pdf",
-    "任务/yogo小程序对接/YOGO前端小程序对接梳理.md",
-    "任务/spring37.md",
+    "README.md.md",
+    "zh/电脑.md",
     "未命名/未命名.md",
-    "工具/chrome/network.md",
+    "zh/README.md.md",
+    "任务/yogo小程序对接/Pasted image 20221008120238.png",
+    "任务/yogo小程序对接/Kerry+ 原生 App 对接.pdf",
     "任务/yogo小程序对接/说明.md",
-    "开发/埋点.md",
-    "工具/macOS/提升性能.md",
-    "任务/yogo小程序对接/Pasted image 20220928195513.png",
-    "任务/Pasted image 20221021094422.png"
+    "任务/yogo小程序对接/嘉里 Kerry+ 对接方案(1).pdf",
+    "任务/yogo小程序对接/YOGO前端小程序对接梳理.md",
+    "任务/spring37.md"
   ]
 }

+ 4 - 0
README.md

@@ -0,0 +1,4 @@
+本项目仓库使用 Obsidian进行开发和预览
+
+About Obsidian
+Version 1.0.3 (Installer 0.15.9)

+ 2 - 2
任务/yogo小程序对接/说明.md

@@ -358,7 +358,6 @@ https://dev-crm-kpl.kerryprops.com.cn/xcrm-api/hafengWebsocket/info?token=9d77e1
 
 9d77e18fc8e2e7fee751ccf06945ff06
 
-
 体验版小程序:
 		SL环境,PROD环境:
 				https://h5.enterprise.yogorobot.com/v3/user/token_login?app=delivery&enterprise_id=1821&enterprise_building_ids=971,972&enterprise_user_id=8a888aea82c9ac970182ecfa259a0ddf&timestamp=1667291945&sign=22d7381cd649ea565ae2d5452617894831c1519a
@@ -366,4 +365,5 @@ https://dev-crm-kpl.kerryprops.com.cn/xcrm-api/hafengWebsocket/info?token=9d77e1
 				https://dev-h5.enterprise.yogorobot.com/v3/user/token_login?app=delivery&enterprise_id=1024&enterprise_building_ids=971,972&enterprise_user_id=8aaa828583bbbc030183cf34b536000a&timestamp=1667292046&sign=f7fb59fe88ffa165ba2b7b8bb82c2d11e45a2795
 		DEV环境:
 				https://dev-h5.enterprise.yogorobot.com/v3/user/token_login?app=delivery&enterprise_id=1024&enterprise_building_ids=971,972&enterprise_user_id=8aaa828583bbbc030183cf34b536000a&timestamp=1667292046&sign=f7fb59fe88ffa165ba2b7b8bb82c2d11e45a2795
-	我们通过 `robot-integration/v1/robot/sign` 接口获取的YOGO的H5页面地址是 `dev-h5.enterprise.yogorobot.com`,而 `SL环境,PROD环境` 的则是 `h5.enterprise.yogorobot.com`。如果需要在  QA环境 访问 YOGO 的 `h5.enterprise.yogorobot.com` 地址,需要手动修改 URL 上携带的参数。在前端生成 enterprise_id、enterprise_building_ids、enterprise_user_id、timestamp、sign 等参数,用于
+
+我们通过 `robot-integration/v1/robot/sign` 接口获取的YOGO的H5页面地址是 `dev-h5.enterprise.yogorobot.com`,而 `SL环境,PROD环境` 的则是 `h5.enterprise.yogorobot.com`。如果需要在  QA环境 访问 YOGO 的 `h5.enterprise.yogorobot.com` 地址,需要手动修改 URL 上携带的参数。在前端小程序内部,将YOGO生产环境使用的 enterprise_id、enterprise_building_ids、enterprise_user_id、timestamp、sign 等参数设定好,则可在 QA环境 访问 YOGO 生产环境的内容,并且调度机器人配送。

+ 0 - 30
未命名/未命名.md

@@ -1,30 +0,0 @@
-```ts
-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')  
-  }
-  // 如果是扫码自提柜  
-  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}`
-  }  
-  // 机器人送餐
-  (uni as any).openEmbeddedMiniProgram({
-  appId: 'wx3f105702c5a7b834',    
-  path: 'pages/token-login/index?' + commonParams,    
-  envVersion: 'trial',    
-  success: () => {},    
-  fail: (e: any) => {      
-	  console.log(312, e);    
-    },  
-  })
-} catch (error: any) {  
-  this.showToast(error?.message ?? t('apis.request.error'));  
-}
-```