Browse Source

no message

Fly 1 year ago
parent
commit
45d57705c1
1 changed files with 9 additions and 4 deletions
  1. 9 4
      pages/login.vue

+ 9 - 4
pages/login.vue

@@ -55,10 +55,15 @@
 			}
 		},
 		methods: {
-			/*
-			 *
-			 * yigeauth 
-			 *
+			/**
+			 *  app端通过 /auth/before/check 校验是否授权及相应返回参数
+			 *  
+			 * redirect":"aHROcDoVLZE5Mi4xNjguMC4yNDYvcmVkaXJ1Y30uaHRtbA" 回调地址 
+			 * redirect 带有 yigeauth参数 为 true 需要授权 不返回 yigeopenid 为 false 不需要授权 返回 yigeopenid
+			 *  appId": "1738044695273148416
+			 * action": "auth"
+			 * back":"aHROcDovLZE5Mi4xNjguMC4yNDYvaw5kZXguaHRtbA"
+			 * 通过授权参数 yigeauth true 需要授权,false 不需要授权,通过 yigeopenid直接 获取信息
 			 */
 			getYigeauth() {
 				this.$http.get('/auth/build_auth').then(res => {