dyjh 6 years ago
parent
commit
ef01e823b8
1 changed files with 1 additions and 1 deletions
  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);