Authored by 郝肖肖

是否使用有货币,门票条件去除

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