Kirin 2 年之前
父節點
當前提交
d8ca99009b
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      application/api/controller/Volunteer.php

+ 5 - 5
application/api/controller/Volunteer.php

@@ -38,11 +38,11 @@ class Volunteer extends Api
                 ['speciali_title', ''],
             ], $request
         );
-        if ($where['name'] == '') $this->error('姓名不能为空');
-        if ($where['phone'] == '') $this->error('电话不能为空');
-        if ($where['address'] == '') $this->error('地址信息不能为空');
-        if ($where['image'] == '') $this->error('照片不能为空');
-        if ($where['birth'] == '') $this->error('生日不能为空');
+//        if ($where['name'] == '') $this->error('姓名不能为空');
+//        if ($where['phone'] == '') $this->error('电话不能为空');
+//        if ($where['address'] == '') $this->error('地址信息不能为空');
+//        if ($where['image'] == '') $this->error('照片不能为空');
+//        if ($where['birth'] == '') $this->error('生日不能为空');
         $where['cid'] = $this->cid;
         $where['user_id'] = $this->auth->getUserinfo()['id'];
         if (VolunteerModel::where('user_id', $where['user_id'])->where('status', '>', -1)->find()) $this->error('已经存,不能重复申请');