| 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',
|
| xqd
@@ -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,
|