|
|
@ -122,7 +122,7 @@ class CoinOrderController extends BaseController
|
|
|
|
$data['create_time'] = time();
|
|
|
|
$data['create_time'] = time();
|
|
|
|
$data['discount'] = "0";
|
|
|
|
$data['discount'] = "0";
|
|
|
|
if($pay_type==1){ // 在线转账
|
|
|
|
if($pay_type==1){ // 在线转账
|
|
|
|
$free = sprintf("%.2f",$coin_num*(0.2/100));
|
|
|
|
$free = sprintf("%.2f",$coin_num*(2/100));
|
|
|
|
$free = $free<'0.1' ? '0.1':$free;
|
|
|
|
$free = $free<'0.1' ? '0.1':$free;
|
|
|
|
$data['pay_amount'] = bcadd($coin_num,$free,2);
|
|
|
|
$data['pay_amount'] = bcadd($coin_num,$free,2);
|
|
|
|
$data['order_status'] = 0;
|
|
|
|
$data['order_status'] = 0;
|
|
|
|