Commit 8c253ff4 authored by hujun's avatar hujun

门店列表修改

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