dyjh 6 년 전
부모
커밋
ef01e823b8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd
@@ -292,7 +292,7 @@ class AlbumController extends Controller
                 $add_record['store_id'] = $datas['store_id'];
                 $add_record['detail'] = null;
                 AlbumWatchRecord::create($add_record);
-                $user_agent = AlbumAgentModel::where('user_id',$add_record['agent_id'])->first();
+                $user_agent = AlbumAgentModel::where('id',$add_record['agent_id'])->first();
                 $agent = AlbumUserModel::where('id',$user_agent->user_id)->first();dd($agent);
                 try{
                     $this->sendLogsMessage($datas['store_id'],$agent->wechat_open_id,4);