Kirin há 3 anos atrás
pai
commit
6af2cbd6a0
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      app/admin/controller/system/SystemStore.php

+ 1 - 0
app/admin/controller/system/SystemStore.php

@@ -280,6 +280,7 @@ class SystemStore extends AuthController
                     $store_date['add_time'] = time();
                     $store_date['add_time'] = time();
                     $store_date['is_show'] = 1;
                     $store_date['is_show'] = 1;
                     if ($res = SystemStoreModel::create($data)) {
                     if ($res = SystemStoreModel::create($data)) {
+                        User::where('uid', $data['uid'])->update(['user_store_id' => $res->id]);
                         SystemStoreApply::commitTrans();
                         SystemStoreApply::commitTrans();
                         return JsonService::success('审核成功', ['id' => $res->id]);
                         return JsonService::success('审核成功', ['id' => $res->id]);
                     } else {
                     } else {