Kirin 3 年之前
父节点
当前提交
6af2cbd6a0
共有 1 个文件被更改,包括 1 次插入0 次删除
  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['is_show'] = 1;
                     if ($res = SystemStoreModel::create($data)) {
+                        User::where('uid', $data['uid'])->update(['user_store_id' => $res->id]);
                         SystemStoreApply::commitTrans();
                         return JsonService::success('审核成功', ['id' => $res->id]);
                     } else {