Kirin 2 năm trước cách đây
mục cha
commit
05a1451a97
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      app/admin/controller/user/User.php

+ 8 - 0
app/admin/controller/user/User.php

@@ -102,6 +102,14 @@ class User extends AuthController
         return $this->fetch('public/form-builder');
     }
 
+    public function del_store($id)
+    {
+        if (!$id) return $this->failed('缺少参数');
+        $res = UserStorePromoter::where('id', $id)->delete();
+        if (!$res) return Json::successful('删除失败');
+        else  return Json::successful('删除成功');
+    }
+
     public function save_set_store($uid = 0)
     {
         if (!$uid) return Json::fail('缺少参数');