...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
namespace Index;
|
|
|
|
|
|
use LibModels\Wap\Home\CartData;
|
|
|
use LibModels\Wap\Home\OrderData;
|
|
|
use Plugin\Helpers;
|
|
|
use Plugin\Images;
|
|
|
|
...
|
...
|
@@ -911,4 +912,24 @@ class CartModel |
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 支付成功页
|
|
|
*/
|
|
|
public static function paySuccessData($orderCode, $uid)
|
|
|
{
|
|
|
$result = array();
|
|
|
$orderInfo = OrderData::viewOrderData($orderCode, $uid, '');
|
|
|
|
|
|
if (isset($orderInfo['code']) && $orderInfo['code'] == 200 && !empty($orderInfo['data'])) {
|
|
|
if ($orderInfo['data']['payment_amount'] > 0) {
|
|
|
$result['price'] = $orderInfo['data']['payment_amount'];
|
|
|
}
|
|
|
}
|
|
|
$param = array('order_code'=>$orderCode);
|
|
|
$result['guang'] = Helpers::url('','','guang');
|
|
|
$result['orderDetail'] = Helpers::url('/home/orderDetail',$param);
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|