diff --git a/app/admin/controller/shop/LocalStore.php b/app/admin/controller/shop/LocalStore.php index 2c3bec1b..30c0e6ab 100755 --- a/app/admin/controller/shop/LocalStore.php +++ b/app/admin/controller/shop/LocalStore.php @@ -91,9 +91,9 @@ class LocalStore extends AdminBase 'empowerPhone' => $data['empowerPhone'], 'crftNo1' => $data['crftNo1'] ]); - } - if (LocalStoreLogic::update_state($post['id'], $post['state'])) { + + if (LocalStoreLogic::update_state($post['id'], $post['state'], $post['reason'] ?? '')) { return JsonServer::success('操作成功'); } } diff --git a/app/admin/logic/shop/LocalStoreLogic.php b/app/admin/logic/shop/LocalStoreLogic.php index 17e78653..e8e9d951 100755 --- a/app/admin/logic/shop/LocalStoreLogic.php +++ b/app/admin/logic/shop/LocalStoreLogic.php @@ -73,9 +73,9 @@ class LocalStoreLogic extends Logic ->find(); } - public static function update_state($id, $state) + public static function update_state($id, $state, $reason) { - return LocalStore::where(['lstore_id' => $id])->update(['store_state' => $state, 'update_time' => date('Y-m-d H:i:s')]); + return LocalStore::where(['lstore_id' => $id])->update(['store_state' => $state , 'failReason' => $reason, 'update_time' => date('Y-m-d H:i:s')]); } // 获取未审核数据 diff --git a/app/admin/view/shop/local_store/edit.html b/app/admin/view/shop/local_store/edit.html index a7f3d8c6..601ffb0e 100755 --- a/app/admin/view/shop/local_store/edit.html +++ b/app/admin/view/shop/local_store/edit.html @@ -51,7 +51,7 @@