Commit 8c253ff4 authored by hujun's avatar hujun

门店列表修改

parent ea464834
...@@ -69,20 +69,20 @@ class Store extends Basic ...@@ -69,20 +69,20 @@ class Store extends Basic
} }
/** /**
* 添加门店 * 添加和编辑门店
* *
* @return \think\Response * @return \think\Response
* @throws \Exception * @throws \Exception
* @throws \think\exception\PDOException3 * @throws \think\exception\PDOException3
*/ */
public function addStore() { public function addStore() {
if (empty($this->params['agents_id']) || empty($this->params['id'])) {
return $this->response(101, '参数错误,修改失败!');
}
$district = new AStore(); $district = new AStore();
if ($this->params['agents_id'] || $this->params['id']) {
$this->data = $district->addStoreAgents($this->params, $this->params['agents_id']); $this->data = $district->addStoreAgents($this->params, $this->params['agents_id']);
} else {
$this->code = 101;
$this->msg = 'agents_id or id is null';
}
return $this->response($this->code, $this->msg, $this->data); return $this->response($this->code, $this->msg, $this->data);
} }
......
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