1
This commit is contained in:
parent
100773ef22
commit
0b16cae60a
@ -413,7 +413,7 @@ class ShopController extends BaseAuthedController
|
||||
}
|
||||
}
|
||||
|
||||
public function startGoodsDirect()
|
||||
public function outappPurchase()
|
||||
{
|
||||
$id = getReqVal('id', 0);
|
||||
$token_type = getReqVal('token_type', '');
|
||||
@ -478,34 +478,7 @@ class ShopController extends BaseAuthedController
|
||||
}
|
||||
}
|
||||
|
||||
public function statusGoodsDirect()
|
||||
{
|
||||
$order_id = getReqVal('order_id', '');
|
||||
|
||||
$conn = myself()->_getMysql('');
|
||||
|
||||
$row = SqlHelper::selectOne(
|
||||
$conn,
|
||||
't_shop_buy_order',
|
||||
array('status', 'id'),
|
||||
array(
|
||||
'order_id' => $order_id,
|
||||
)
|
||||
);
|
||||
if ($row) {
|
||||
$this->_rspData(
|
||||
array(
|
||||
'status' => $row['status'],
|
||||
'item_id' => $row['item_id'],
|
||||
'item_num' => $row['goods_num'],
|
||||
)
|
||||
);
|
||||
} else {
|
||||
$this->_rspErr(1, "order_id not found, order_id: {$order_id}");
|
||||
}
|
||||
}
|
||||
|
||||
public function startInappPurchase()
|
||||
public function inappPurchase()
|
||||
{
|
||||
$self = myself();
|
||||
if (!$self) {
|
||||
@ -575,7 +548,7 @@ class ShopController extends BaseAuthedController
|
||||
return $order_id;
|
||||
}
|
||||
|
||||
public function statusInappPurchase()
|
||||
public function queryInappPurchase()
|
||||
{
|
||||
$order_id = getReqVal('order_id', '');
|
||||
$conn = myself()->_getMysql('');
|
||||
|
Loading…
x
Reference in New Issue
Block a user