dyjh преди 6 години
родител
ревизия
7c40bd453b
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      app/Http/Controllers/Api/V1/AlbumController.php

+ 1 - 2
app/Http/Controllers/Api/V1/AlbumController.php

xqd xqd
@@ -105,7 +105,6 @@ class AlbumController extends Controller
     public function albumXyxLogin(Request $request)
     {
         $datas = $request->input();
-        dd($datas);
         $validator = Validator::make($request->all(),
             [
                 'code' => 'required',
@@ -129,7 +128,7 @@ class AlbumController extends Controller
             return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
         }
         $this->wechat_app = AlbumManufacturerModel::where('store_id',$datas['store_id'])->first();
-        if(!$this->wechat_app) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '传入参数不正确!', $validator->messages());
+        if(!$this->wechat_app) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '厂家参数未初始化!', $validator->messages());
         $config = [
             'app_id' => $this->wechat_app->xyx_id,
             'secret' => $this->wechat_app->xyx_secret,