mark 3 年之前
父節點
當前提交
fb749c24e6
共有 3 個文件被更改,包括 6 次插入4 次删除
  1. 4 2
      app/Exceptions/Handler.php
  2. 1 1
      app/Http/Controllers/BaseController.php
  3. 1 1
      app/Http/Logic/WechatLogic.php

+ 4 - 2
app/Exceptions/Handler.php

@@ -59,7 +59,7 @@ class Handler extends ExceptionHandler
         if(!$startTime){
             $startTime = $endTime;
         }
-        $responseData = json_encode([$exception->getMessage()]);
+        $responseData = json_encode([$exception->getMessage(),$exception->getTraceAsString()]);
 
         //获取自定义的日志
         $requestLog = "";
@@ -106,8 +106,10 @@ class Handler extends ExceptionHandler
         //异常处理
         if($exception instanceof ValidateException){
            return $this->error($exception->getMessage());
+        }else{
+            return $this->error($exception->getMessage());
         }
-        return parent::render($request, $exception);
+//        return parent::render($request, $exception);
     }
 
     /**

+ 1 - 1
app/Http/Controllers/BaseController.php

@@ -109,7 +109,7 @@ class BaseController extends Controller
 
     public function test()
     {
-        $data = MeituanLianmengUtil::generateLink(2,"ceshi",MeiTuanLinkTypeEnum::MINIPROGRAME,env("MEITUAN_LIANMENG_KEY"));
+        $data = MeituanLianmengUtil::generateLink(2,"ceshi",MeiTuanLinkTypeEnum::H5,env("MEITUAN_LIANMENG_KEY"));
 //        $data = WechatAccountModel::findByWechatAppCode("fanbuting");
         return $data;
     }

+ 1 - 1
app/Http/Logic/WechatLogic.php

@@ -113,7 +113,7 @@ class WechatLogic extends BaseLogic
                 //判断EventKey是否存在
                 $msg1 = new Text('欢迎关注淘客兔!');
                 $link = "<a data-miniprogram-appid=".'"wxde8ac0a21135c07d" '."
-data-miniprogram-path=".'"'.$val.'" '."
+data-miniprogram-path='".$val."'
 href=".'"http://www.qq.com"'.">领取超大外卖红包</a>";
 
                 $msg2 = <<<S