dyjh преди 6 години
родител
ревизия
a15d064658
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      app/Http/Controllers/Api/V1/AlbumPosterController.php

+ 3 - 2
app/Http/Controllers/Api/V1/AlbumPosterController.php

xqd
@@ -227,8 +227,9 @@ class AlbumPosterController extends Controller
             $add_record['store_id'] = $data['store_id'];
             $add_record['detail'] = '保存了图片';
             $user_agent = AlbumAgentModel::where('id', $userAuth->up_agent_id)->first();
-           // $agent = AlbumUserModel::where('id', $user_agent->user_id)->first();
-
+            $agent = AlbumUserModel::where('id', $user_agent->user_id)->first();
+            $agent->share_times++;
+            $agent->save();
             //$album = new AlbumController();
             //$album->sendLogsMessage($data['store_id'], $agent->open_id, 9, $userAuth->username, $agent->g_open_id);