This commit is contained in:
songliang 2023-07-15 11:16:07 +08:00
parent 801af98c81
commit c08fefcca4
3 changed files with 14 additions and 1 deletions

View File

@ -341,7 +341,7 @@ class ShopController extends BaseAuthedController
$this->_rspErr(2, "order not found: {$order_id}"); $this->_rspErr(2, "order not found: {$order_id}");
return; return;
} }
$id = $order['id']; $id = $order['id'];
$goods_num = $order['goods_num']; $goods_num = $order['goods_num'];
$o_status = $order['status']; $o_status = $order['status'];
@ -360,6 +360,10 @@ class ShopController extends BaseAuthedController
case "98": case "98":
$buyStatus = 2; $buyStatus = 2;
break; break;
default:
error_log("buyGoodsDirect--- " . $order_id . " --- " . $status);
$this->_rspErr(1, "status error, status: {$status}");
break;
} }
SqlHelper::update($conn, 't_shop_buy_order', array('idx' => $order_id), array('status' => $buyStatus)); SqlHelper::update($conn, 't_shop_buy_order', array('idx' => $order_id), array('status' => $buyStatus));
@ -656,6 +660,8 @@ class ShopController extends BaseAuthedController
break; break;
default: default:
$status = 0; $status = 0;
$this->_rspErr(1, "status is not 9 or 96");
return;
break; break;
} }
} }

View File

@ -73,6 +73,7 @@ class ShopBuyGoodsDirect
$this->_rspErr(2, "order not found: {$order_id}"); $this->_rspErr(2, "order not found: {$order_id}");
return; return;
} }
$id = $order['id']; $id = $order['id'];
$goods_num = $order['goods_num']; $goods_num = $order['goods_num'];
$o_status = $order['status']; $o_status = $order['status'];
@ -91,6 +92,10 @@ class ShopBuyGoodsDirect
case "98": case "98":
$buyStatus = 2; $buyStatus = 2;
break; break;
default:
error_log("buyGoodsDirect-------" . $order_id . "---" . $status);
$this->_rspErr(1, "status error, status: {$status}");
return;
} }
SqlHelper::update($conn, 't_shop_buy_order', array('idx' => $order_id), array('status' => $buyStatus)); SqlHelper::update($conn, 't_shop_buy_order', array('idx' => $order_id), array('status' => $buyStatus));

View File

@ -193,6 +193,8 @@ class ShopInappPurchaseDiamonds
break; break;
default: default:
$status = 0; $status = 0;
$this->_rspErr(1, "status is not 9 or 96");
return;
break; break;
} }
} }