...
|
...
|
@@ -496,5 +496,23 @@ class CartData |
|
|
|
|
|
return Yohobuy::get(SearchData::getUrl('search'), $param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 选择支付,校验时间间隔,插入数据
|
|
|
* @param string $uid
|
|
|
* @param string $orderCode
|
|
|
* @param int $payment 14:银联手机支付 15:支付宝手机 18:支付宝wap(wap) 19:微信支付 22:微信wap(wap) 26:QQ钱包手机支付
|
|
|
* @return type
|
|
|
*/
|
|
|
public static function savePrePayInfo($uid, $orderCode, $payment)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.order.savePrePayInfo';
|
|
|
$param['uid'] = $uid;
|
|
|
$param['orderCode'] = $orderCode;
|
|
|
$param['payment'] = $payment;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|