Commit 8c253ff4 authored by hujun's avatar hujun

门店列表修改

parent ea464834
...@@ -69,21 +69,21 @@ class Store extends Basic ...@@ -69,21 +69,21 @@ 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() {
$district = new AStore();
if ($this->params['agents_id'] || $this->params['id']) { if (empty($this->params['agents_id']) || empty($this->params['id'])) {
$this->data = $district->addStoreAgents($this->params, $this->params['agents_id']); return $this->response(101, '参数错误,修改失败!');
} else {
$this->code = 101;
$this->msg = 'agents_id or id is null';
} }
$district = new AStore();
$this->data = $district->addStoreAgents($this->params, $this->params['agents_id']);
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