|
@@ -58,6 +58,7 @@ class Profile extends Backend |
|
@@ -58,6 +58,7 @@ class Profile extends Backend |
58
|
if ($this->request->isPost()) {
|
58
|
if ($this->request->isPost()) {
|
59
|
$this->token();
|
59
|
$this->token();
|
60
|
$params = $this->request->post("row/a");
|
60
|
$params = $this->request->post("row/a");
|
|
|
61
|
+ $name = $params['name'];
|
61
|
$money = $params['money'];
|
62
|
$money = $params['money'];
|
62
|
$freight = $params['freight'];
|
63
|
$freight = $params['freight'];
|
63
|
$phone = $params['phone'];
|
64
|
$phone = $params['phone'];
|
|
@@ -91,7 +92,7 @@ class Profile extends Backend |
|
@@ -91,7 +92,7 @@ class Profile extends Backend |
91
|
Session::set("admin", $admin->toArray());
|
92
|
Session::set("admin", $admin->toArray());
|
92
|
$store_id = Db::name('admin')->where(['id'=>$this->auth->id])->value('store_id');
|
93
|
$store_id = Db::name('admin')->where(['id'=>$this->auth->id])->value('store_id');
|
93
|
if(!empty($store_id)){
|
94
|
if(!empty($store_id)){
|
94
|
- echo Db::name('store')->where(['id'=>$store_id])->update(['money'=>$money,'freight'=>$freight,'phone'=>$phone,'address'=>$address,'lng'=>$lng,'lat'=>$lat,'content'=>$content]);
|
95
|
+ echo Db::name('store')->where(['id'=>$store_id])->update(['name'=>$name,'money'=>$money,'freight'=>$freight,'phone'=>$phone,'address'=>$address,'lng'=>$lng,'lat'=>$lat,'content'=>$content]);
|
95
|
}
|
96
|
}
|
96
|
$this->success();
|
97
|
$this->success();
|
97
|
}
|
98
|
}
|