关闭无效的请求

This commit is contained in:
wangxiaowei 2024-09-25 10:50:07 +08:00
parent 006bdbf6f2
commit 281f53f0a8

@ -87,10 +87,11 @@ class LocalStore extends AdminBase
if (in_array($post['state'], LocalStoreLogic::$STATE_ENUM)) {
if ($post['state'] == 1) {
$data = LocalStoreLogic::get_data($post['id']);
$result = Request::post('https://dlh.hainings.com/shop/abutment.abutment/test', [
'empowerPhone' => $data['empowerPhone'],
'crftNo1' => $data['crftNo1']
]);
// 这个POST请求不行,暂时也不需要请求
// $result = Request::post('https://dlh.hainings.com/shop/abutment.abutment/test', [
// 'empowerPhone' => $data['empowerPhone'],
// 'crftNo1' => $data['crftNo1']
// ]);
}
if (LocalStoreLogic::update_state($post['id'], $post['state'], $post['reason'] ?? '')) {