Selaa lähdekoodia

小程序相关配置修改

zhenghao 6 kuukautta sitten
vanhempi
commit
45a082dbc1

+ 3 - 3
WxProgram/manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "Ruoyi-AbuCoder-UniApp-WX",
-    "appid" : "__UNI__9DE84B0",
+    "appid" : "__UNI__3CF9DA8",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -9,7 +9,7 @@
     "app-plus" : {
         "usingComponents" : true,
         "nvueStyleCompiler" : "uni-app",
-        "compilerVersion" : 3,
+        "compilerVersion" : 4,
         "splashscreen" : {
             "alwaysShowBeforeRender" : true,
             "waiting" : true,
@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wx23b6910fc7825063",
+        "appid" : "wxacfdc1488444d425",
         "setting" : {
             "urlCheck" : false,
             "minified" : true

+ 1 - 1
WxProgram/pages/me/me.vue

@@ -117,7 +117,7 @@
 						})
 						that.request('wxlogin', form, 'POST').then(wxloginres => {
 							console.log("wxloginres: ", wxloginres)
-							if (wxloginres.code==0) {
+							if (wxloginres.code==200) {
 								uni.hideLoading()
 								setTimeout(function() {
 									uni.hideLoading();

+ 1 - 1
WxProgram/pages/me/userinfo.vue

@@ -92,7 +92,7 @@
 				})
 				that.request('saveUserInfo', form, 'POST').then(res=>{
 					console.log("wxloginres: ", res)
-					if(res.code==0){
+					if(res.code==200){
 						uni.hideLoading()
 						setTimeout(function () {
 							uni.hideLoading();

+ 1 - 1
WxProgram/project.config.json

@@ -1,5 +1,5 @@
 {
-  "appid": "touristappid",
+  "appid": "wxbaadf86c10edf9ef",
   "compileType": "miniprogram",
   "libVersion": "2.30.4",
   "packOptions": {

+ 2 - 2
ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java

@@ -44,11 +44,11 @@ public class WxLoginController {
      * 你自己的微信小程序APPID
      */
 
-    private final static String AppID = "你自己的微信小程序APPID";
+    private final static String AppID = "wxacfdc1488444d425";
     /**
      * 你自己的微信APP密钥
      */
-    private final static String AppSecret = "你自己的微信APP密钥";
+    private final static String AppSecret = "f4b119b111eb1607e35c5a9258d05f7d";
 
     /**
      * 登录时获取的 code(微信官方提供的临时凭证)