Kirin %!s(int64=2) %!d(string=hai) anos
pai
achega
05a1451a97
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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('缺少参数');