Commit fdc70999 authored by hujun's avatar hujun

新增门店修改

parent 1b709b95
...@@ -77,12 +77,12 @@ class Store extends Basic ...@@ -77,12 +77,12 @@ class Store extends Basic
*/ */
public function addStore() { public function addStore() {
if (empty($this->params['agents_id']) || empty($this->params['id'])) { if (empty($this->params['agents_id'])) {
return $this->response(101, '参数错误,修改失败!'); return $this->response(101, '参数错误,修改失败!');
} }
$district = new AStore(); $store = new AStore();
$this->data = $district->addStoreAgents($this->params, $this->params['agents_id']); $this->data = $store->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