fangchen 5 years ago
parent
commit
dc9602dd75
4 changed files with 22 additions and 4 deletions
  1. 1 1
      .gitignore
  2. 2 2
      client/config.js
  3. 1 1
      client/project.config.json
  4. 18 0
      server/config.local.js

+ 1 - 1
.gitignore

@@ -44,4 +44,4 @@ sh/
 # ignore test sdk.config.json
 sdk.config.json
 # ignore local config
-server/config.local.js
+#server/config.local.js

+ 2 - 2
client/config.js

@@ -4,8 +4,8 @@
 
 // 此处主机域名修改成腾讯云解决方案分配的域名
 //var host = 'https://2ljpzczu.qcloud.la'  //开发环境
-var host = 'http://10.32.2.208:5757'  //开发环境
-// var host = 'https://dgt.dgtis.com'  //开发环境
+//var host = 'http://10.32.2.208:5757'  //开发环境
+ var host = 'https://pk.dgtis.com'  //开发环境
 
 // var appId = 'wx0eedaadeee1d7f8a'
 var appId ='wxc65eea6a56ef0fd5'

+ 1 - 1
client/project.config.json

@@ -4,7 +4,7 @@
 		"ignore": []
 	},
 	"setting": {
-		"urlCheck": false,
+		"urlCheck": true,
 		"es6": true,
 		"postcss": true,
 		"minified": true,

+ 18 - 0
server/config.local.js

@@ -0,0 +1,18 @@
+module.exports = {
+    mysql: {
+        host: 'localhost',
+        port: 3306,
+        user: 'root',
+        pass: 'root',
+        db: 'cAuth',
+        char: 'utf8mb4'
+    },
+    serverHost: 'pk.dgtis.com',
+    tunnelServerUrl: 'https://tunnel.ws.qcloud.la',
+    tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
+    // 腾讯云相关配置可以查看云 API 秘钥控制台:https://console.qcloud.com/capi
+    qcloudAppId: '1258845536',
+    qcloudSecretId: 'AKIDb3oRu1w3r2883xo7WluxmR4awBIRbAMO',
+    qcloudSecretKey: 'WuOfnwynRs8E6Io581SBnBSItIl56vWv',
+    wxMessageToken: ''
+}