Commit ccabf4ef by 朱继来

调整退款金额

parent 08590cb7
......@@ -1240,8 +1240,7 @@ Class OrderController extends Controller
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
echo '<pre>';
print_r(curlApi($url, $data, "POST"));die;
$temp = json_decode(curlApi($url, $data, "POST"), true);
return array('errcode'=>$temp['err_code'], 'errmsg'=>$temp['err_msg']);
......
......@@ -172,7 +172,7 @@ class RefundController extends Controller
if (!$refund) echo '未获取到退款单';
$data['order_id'] = $refund->order_id;
$data['refund_amount'] = number_format($refund->pay_amount - $refund->price_fall, 2);
$data['refund_amount'] = number_format($refund->pay_amount - $refund->price_fall, 2, '.', '');
$data['pay_code'] = 'unionpay';
$url = Config('website.api_domain').'refund/recharge';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment