Kirin 2 vuotta sitten
vanhempi
commit
d8ca99009b
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  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('已经存,不能重复申请');