...
|
...
|
@@ -640,11 +640,12 @@ class CartModel |
|
|
'yohoCoin' => isset($orderCompute['yoho_coin']) ? Helpers::transPrice($orderCompute['yoho_coin']) : 0,
|
|
|
'useYohoCoin' => isset($orderCompute['use_yoho_coin']) ? Helpers::transPrice($orderCompute['use_yoho_coin']) : 0,
|
|
|
'yohoCoinClick' => 0,
|
|
|
'yohoCoinMsg' => ''
|
|
|
'yohoCoinMsg' => '',
|
|
|
'yoho_coin_pay_rule' => $orderCompute['yoho_coin_pay_rule']
|
|
|
];
|
|
|
|
|
|
if ($yohoCoinData['totalYohoCoinNum'] < 100) {
|
|
|
$yohoCoinData['yohoCoinMsg'] = "共{$yohoCoinData['totalYohoCoinNum']}有货币,满100可用";
|
|
|
$yohoCoinData['yohoCoinMsg'] = "共{$yohoCoinData['totalYohoCoinNum']}有货币,满{$orderCompute['yoho_coin_pay_rule']['num_limit']}可用";
|
|
|
} else if ($yohoCoinData['useYohoCoin'] > 0 || $yohoCoinData['yohoCoin'] > 0) {
|
|
|
$yohoCoinData['yohoCoinMsg'] = '可抵¥' . ($yohoCoinData['useYohoCoin'] > 0 ? $yohoCoinData['useYohoCoin'] : $yohoCoinData['yohoCoin']);
|
|
|
$yohoCoinData['yohoCoinClick'] = 1;
|
...
|
...
|
|