Explorar o código

记录日志,改文件,接口改回,测试完毕

lizhen_gitee hai 4 meses
pai
achega
3ab8def9f9

+ 1 - 2
application/api/controller/User.php

@@ -40,7 +40,7 @@ class User extends Api
             $this->error(__('Mobile is incorrect'));
         }
 
-        if(!$this->apiLimit(60,1,'60_'.$mobile)){
+        if(!$this->apiLimit(60,3,'60_'.$mobile)){
             $this->error('您的手机号登录频繁,请一分钟后再试');
         };
         if(!$this->apiLimit(3600,10,'3600_'.$mobile)){
@@ -137,7 +137,6 @@ class User extends Api
      * 微信内H5-JSAPI支付
      */
     public function jssdkBuildConfig() {
-        $this->error('获取失败');
         $url = $this->request->request("url");
         $wechat = new \app\common\library\Wechatshare;
         $sign = $wechat->getSignPackage(urldecode($url));

+ 1 - 1
application/api/library/ExceptionHandle.php

@@ -33,7 +33,7 @@ class ExceptionHandle extends Handle
             $msg = '网络开小差了';
             $result = ['code' => $code, 'msg' => $msg, 'time' => time(), 'data' => null];
 
-            $logType = 2;
+            $logType = 1;
             if ($logType == 1){
                 LogUtil::error('result','Api-Middleware-Log','request_log',$result);
                 LogUtil::error('ExceptionMsg','Api-Middleware-Log','request_log',$e->getMessage());

+ 1 - 1
application/common/controller/Api.php

@@ -70,7 +70,7 @@ class Api
     /**
      * @var int 日志类型 1 文件;2sql
      */
-    public $logType = 2;
+    public $logType = 1;
 
     /**
      * 构造方法