|
@@ -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));
|
|
|
}
|
|
|
}
|