...
|
...
|
@@ -530,21 +530,18 @@ class CartData |
|
|
* @param type int $productSku 产品sku
|
|
|
* @param type int $buyNumber 购买数量,范围1-4
|
|
|
* @param type int $yohoCoin yoho币
|
|
|
* @param type int $yohoCoinMode 是否使用有货币,0不使用,否则使用
|
|
|
* @return type []
|
|
|
*/
|
|
|
public static function addTicket($uid, $productSku, $buyNumber, $yohoCoin = 0, $yohoCoinMode = 0)
|
|
|
public static function addTicket($uid, $productSku, $buyNumber, $yohoCoin = 0)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.shopping.ticket';
|
|
|
$param['uid'] = intval($uid);
|
|
|
$param['product_sku'] = intval($productSku);
|
|
|
$param['buy_number'] = intval($buyNumber);
|
|
|
$param['yohoCoinMode'] = intval($yohoCoinMode);
|
|
|
//yoho币转换成元,1yoho币等于一分钱
|
|
|
if (isset($yohoCoin) && $yohoCoin > 0) {
|
|
|
$param['use_yoho_coin'] = $yohoCoin / 100;
|
|
|
$param['yohoCoinMode'] = 1;//使用有货币
|
|
|
}
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
...
|
...
|
|