linwu 2 сар өмнө
parent
commit
1f4b36f642

+ 1 - 1
api/teahouse/controller/TeahouseController.php

@@ -75,7 +75,7 @@ class TeahouseController extends RestBaseController
         }
         }
 
 
         //爽约次数
         //爽约次数
-        $unuse = LockBookModel::where('user',  $this->user['id'])->where('is_use',2)->count();
+        $unuse = LockBookModel::where('user_id',  $this->user['id'])->where('is_use',2)->count();
         if ($unuse >= 3) {
         if ($unuse >= 3) {
             $this->error('您爽约和预约的总时长超过3小时,无法再预约,请联系管理员');
             $this->error('您爽约和预约的总时长超过3小时,无法再预约,请联系管理员');
         }
         }

+ 4 - 4
applet/app.js

@@ -2,10 +2,10 @@
 App({
 App({
   globalData: {
   globalData: {
     title: '晋爱人才',
     title: '晋爱人才',
-    http_host: 'http://bd.jarc.com/',
-    // http_host: 'http://jarc.jucai.gov.cn/',
-    api_host: 'http://bd.jarc.com/api/',
-    // api_host: 'https://jarc.jucai.gov.cn/api/',
+    // http_host: 'http://bd.jarc.com/',
+    http_host: 'https://jarc.jucai.gov.cn/',
+    // api_host: 'http://bd.jarc.com/api/',
+    api_host: 'https://jarc.jucai.gov.cn/api/',
   },
   },
   onLaunch: function() {
   onLaunch: function() {
     var self = this;
     var self = this;

+ 1 - 1
applet/project.private.config.json

@@ -1,7 +1,7 @@
 {
 {
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
   "setting": {
   "setting": {
-    "urlCheck": false,
+    "urlCheck": true,
     "compileHotReLoad": true
     "compileHotReLoad": true
   },
   },
   "projectname": "%E6%99%8B%E7%88%B1%E4%BA%BA%E6%89%8D",
   "projectname": "%E6%99%8B%E7%88%B1%E4%BA%BA%E6%89%8D",