Browse Source

localhost mysql change in 5.7 version for mysql init success, local dev env selected

charblus 5 years ago
parent
commit
8dae5c102e
4 changed files with 11 additions and 4 deletions
  1. 1 0
      README.md
  2. 5 0
      package-lock.json
  3. 2 1
      package.json
  4. 3 3
      server/config.js

+ 1 - 0
README.md

@@ -35,3 +35,4 @@ npm run build --report
 ```
 
 For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
+

+ 5 - 0
package-lock.json

@@ -9982,6 +9982,11 @@
       "resolved": "http://registry.npm.taobao.org/vuex/download/vuex-3.1.0.tgz",
       "integrity": "sha1-Y0uBUVzwz+l2vR/+lgF1XlH4Q7k="
     },
+    "wafer2-client-sdk": {
+      "version": "2.1.0",
+      "resolved": "http://registry.npm.taobao.org/wafer2-client-sdk/download/wafer2-client-sdk-2.1.0.tgz",
+      "integrity": "sha1-szh9jw/jaO0P7ZzOLr/doo+Fs4w="
+    },
     "watchpack": {
       "version": "1.6.0",
       "resolved": "http://registry.npm.taobao.org/watchpack/download/watchpack-1.6.0.tgz",

+ 2 - 1
package.json

@@ -25,7 +25,8 @@
   },
   "dependencies": {
     "mpvue": "^2.0.0",
-    "vuex": "^3.0.1"
+    "vuex": "^3.0.1",
+    "wafer2-client-sdk": "^2.1.0"
   },
   "devDependencies": {
     "babel-core": "^6.22.1",

+ 3 - 3
server/config.js

@@ -13,10 +13,10 @@ const CONF = {
     rootPathname: '',
 
     // 微信小程序 App ID
-    appId: '',
+    appId: 'wxa28c90f932b1fb61',
 
     // 微信小程序 App Secret
-    appSecret: '',
+    appSecret: '64520465c87eab44d8c918a6ead2b33c',
 
     // 是否使用腾讯云代理登录小程序
     useQcloudLogin: true,
@@ -31,7 +31,7 @@ const CONF = {
         port: 3306,
         user: 'root',
         db: 'cAuth',
-        pass: '12345678',
+        pass: 'root',
         char: 'utf8mb4'
     },