diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 58a8ac16..dd55cb93 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -341,7 +341,7 @@ class ShopController extends BaseAuthedController $this->_rspErr(2, "order not found: {$order_id}"); return; } - + $id = $order['id']; $goods_num = $order['goods_num']; $o_status = $order['status']; @@ -360,6 +360,10 @@ class ShopController extends BaseAuthedController case "98": $buyStatus = 2; 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)); @@ -656,6 +660,8 @@ class ShopController extends BaseAuthedController break; default: $status = 0; + $this->_rspErr(1, "status is not 9 or 96"); + return; break; } } diff --git a/webapp/services/callback/ShopBuyGoodsDirect.php b/webapp/services/callback/ShopBuyGoodsDirect.php index 073c0bb4..f494c544 100644 --- a/webapp/services/callback/ShopBuyGoodsDirect.php +++ b/webapp/services/callback/ShopBuyGoodsDirect.php @@ -73,6 +73,7 @@ class ShopBuyGoodsDirect $this->_rspErr(2, "order not found: {$order_id}"); return; } + $id = $order['id']; $goods_num = $order['goods_num']; $o_status = $order['status']; @@ -91,6 +92,10 @@ class ShopBuyGoodsDirect case "98": $buyStatus = 2; 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)); diff --git a/webapp/services/callback/ShopInappPurchaseDiamonds.php b/webapp/services/callback/ShopInappPurchaseDiamonds.php index e72181a9..0ff78111 100644 --- a/webapp/services/callback/ShopInappPurchaseDiamonds.php +++ b/webapp/services/callback/ShopInappPurchaseDiamonds.php @@ -193,6 +193,8 @@ class ShopInappPurchaseDiamonds break; default: $status = 0; + $this->_rspErr(1, "status is not 9 or 96"); + return; break; } }