1
This commit is contained in:
parent
55417bcbd3
commit
cd675c7825
@ -68,32 +68,7 @@ class OutAppPurchase {
|
||||
return;
|
||||
}
|
||||
OutAppOrder::markFinished($orderDb['order_id']);
|
||||
if ($orderDb['status'] == OutAppOrder::FINISHED_STATE) {
|
||||
myself()->_rspErr(0, 'order is finished');
|
||||
return;
|
||||
}
|
||||
$buyStatus = 0; // 1: 成功, 2: 失败
|
||||
switch ($status) {
|
||||
case "9":
|
||||
$buyStatus = 1;
|
||||
// 充值成功,开始首充奖励
|
||||
$this->beginFirstTupop($address);
|
||||
break;
|
||||
case "99":
|
||||
case "98":
|
||||
$buyStatus = 2;
|
||||
break;
|
||||
default:
|
||||
error_log("buyGoodsDirect--- " . $order_id . " --- " . $status);
|
||||
$this->_rspErr(1, "status error, status: {$status}");
|
||||
break;
|
||||
}
|
||||
|
||||
if ($buyStatus == 2) {
|
||||
$this->_rspErr(2, "buyStatus error, buyStatus: {$buyStatus}");
|
||||
return;
|
||||
}
|
||||
|
||||
$this->beginFirstTupop($address);
|
||||
// 以下是看商品表中是否配置了充值额外奖励
|
||||
$goodsMeta = mt\ShopGoods::get($orderDb['goods_id']);
|
||||
$goodsNum = $orderDb['goods_num'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user