dyjh пре 6 година
родитељ
комит
aff1aecca0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd
@@ -210,7 +210,7 @@ class AlbumController extends Controller
                 if($request->input('agent_id')!=0){
                     $userAuth->up_agent_id = $request->input('agent_id');
                 }
-                $add_record['agent_id'] = $request->input('agent_id');
+                $add_record['agent_id'] = $userAuth->up_agent_id;
                 $add_record['open_id'] = $check->open_id;
                 $add_record['action'] = 4;
                 $add_record['store_id'] = $datas['store_id'];