| xqd
@@ -298,7 +298,7 @@ class AlbumController extends Controller
|
|
|
$add_record['store_id'] = $datas['store_id'];
|
|
|
$add_record['detail'] = null;
|
|
|
AlbumWatchRecord::create($add_record);
|
|
|
- dd($add_record);
|
|
|
+ // dd($add_record);
|
|
|
$user_agent = AlbumAgentModel::where('id',$add_record['agent_id'])->first();
|
|
|
if($user_agent){
|
|
|
$agent = AlbumUserModel::where('id',$user_agent->user_id)->first();
|
| xqd
@@ -311,7 +311,7 @@ class AlbumController extends Controller
|
|
|
|
|
|
}else{
|
|
|
$userAuth->up_agent_id = 0;
|
|
|
- }
|
|
|
+ }dd($userAuth);
|
|
|
$userAuth->save();
|
|
|
$user['up_agent_id'] = $userAuth->up_agent_id;
|
|
|
$token = $userAuth->createToken($userAuth->id . '-' . $userAuth->openid)->accessToken;
|