Commit c6a5df16 authored by hujun's avatar hujun

职称判断

parent 6f15b062
...@@ -727,7 +727,7 @@ class Broker extends Basic ...@@ -727,7 +727,7 @@ class Broker extends Basic
* @return \think\Response * @return \think\Response
*/ */
public function updatePosition() { public function updatePosition() {
if (empty($this->params['agent_id']) || empty($this->params['position'])) { if (empty($this->params['agent_id']) || !isset($this->params['position']) || $this->params['position'] < 0) {
return $this->response(101, '参数错误'); return $this->response(101, '参数错误');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment