소스 검색

上传校验日志修改

ajun 5 년 전
부모
커밋
0dec263b08

+ 1 - 1
app/Http/Controllers/api/thirdPart/hengli/PackageController.php

@@ -20,7 +20,7 @@ class PackageController extends WeightBaseController
 
     public function new_(Request $request)
     {
-        app('LogService')->log(__METHOD__, $this->name, "记录上传日志:" . json_encode($request->all()) . '||' , null);
+        app('LogService')->log(__METHOD__, $this->name, "记录上传日志:" . json_encode($request->all()) , null);
         return $this->new($request);
     }
 

+ 1 - 0
app/Http/Controllers/api/thirdPart/weight/WeightBaseController.php

@@ -33,6 +33,7 @@ class WeightBaseController
 //        app('LogService')->log(__METHOD__, $this->name, "记录上传日志:" . json_encode($request->all()) . '||' , null);
         $errors = $this->validator($request);
         if(count($errors)){
+            app('LogService')->log(__METHOD__, $this->name, "上传校验Error:" . json_encode($request->all()) , null);
             return $this->validatorErrors($errors);
         }
         return $this->weightOrderPackage($request);