| xqd
@@ -282,7 +282,7 @@ class AlbumController extends Controller
|
|
|
}
|
|
|
if (Auth::loginUsingId($check->id)) {
|
|
|
$userAuth = Auth::user();
|
|
|
- if($check->is_dealer ==0){
|
|
|
+ if($check->is_dealer ==0 && $request->input('agent_id')!=0){
|
|
|
$userAuth->up_agent_id = $request->input('agent_id');
|
|
|
$add_record['agent_id'] = $request->input('agent_id');
|
|
|
$add_record['open_id'] = $check->wechat_open_id;
|