...
|
...
|
@@ -58,6 +58,7 @@ class Profile extends Backend |
|
|
if ($this->request->isPost()) {
|
|
|
$this->token();
|
|
|
$params = $this->request->post("row/a");
|
|
|
$name = $params['name'];
|
|
|
$money = $params['money'];
|
|
|
$freight = $params['freight'];
|
|
|
$phone = $params['phone'];
|
...
|
...
|
@@ -91,7 +92,7 @@ class Profile extends Backend |
|
|
Session::set("admin", $admin->toArray());
|
|
|
$store_id = Db::name('admin')->where(['id'=>$this->auth->id])->value('store_id');
|
|
|
if(!empty($store_id)){
|
|
|
echo Db::name('store')->where(['id'=>$store_id])->update(['money'=>$money,'freight'=>$freight,'phone'=>$phone,'address'=>$address,'lng'=>$lng,'lat'=>$lat,'content'=>$content]);
|
|
|
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]);
|
|
|
}
|
|
|
$this->success();
|
|
|
}
|
...
|
...
|
|