WIN-2308041133\Administrator vor 6 Monaten
Ursprung
Commit
ee51aecba9
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      application/api/controller/Lave.php

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

@@ -430,8 +430,8 @@ class Lave extends Api
                 ['uid', 0],
             ], $request
         );
-        if (isset($where['uid'])) $this->error('用户不存在');
-        if (isset($where['cid'])) $this->error('请选择正确的城市的红十字会');
+        if (!isset($where['uid'])) $this->error('用户不存在');
+        if (!isset($where['cid'])) $this->error('请选择正确的城市的红十字会');
         $this->success('获取成功', WechatPlanRecord::plan_lst($where));
     }
 //    签约记录列表
@@ -446,9 +446,9 @@ class Lave extends Api
                 ['user_id', 0],
             ], $request
         );
-        if (isset($where['uid'])) $this->error('用户不存在');
-        if (isset($where['cid'])) $this->error('请选择正确的城市的红十字会');
-        if (isset($where['category_id'])) $this->error('请选择捐款项目');
+        if (!isset($where['uid'])) $this->error('用户不存在');
+        if (!isset($where['cid'])) $this->error('请选择正确的城市的红十字会');
+        if (!isset($where['category_id'])) $this->error('请选择捐款项目');
         $this->success('获取成功', WechatPlanRecord::record_lst($where));
     }
 }