|
|
|
@ -55,13 +55,14 @@ class PayController extends Controller
|
|
|
|
'orderid' => $orderInfo->order_number,
|
|
|
|
'orderid' => $orderInfo->order_number,
|
|
|
|
'order_desc' => $orderInfo->title,
|
|
|
|
'order_desc' => $orderInfo->title,
|
|
|
|
'amount' => (int)($orderInfo->true_price * 100),
|
|
|
|
'amount' => (int)($orderInfo->true_price * 100),
|
|
|
|
'notify_url'=>config('app.globals.PayNotifyUrl')
|
|
|
|
'notify_url'=> config('app.globals.PayNotifyUrl')
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$nonce=self::nonce();
|
|
|
|
$nonce=self::nonce();
|
|
|
|
$timestamp=(string)time();
|
|
|
|
$timestamp=(string)time();
|
|
|
|
|
|
|
|
|
|
|
|
//签名
|
|
|
|
//签名
|
|
|
|
$base64Signature=$XCXApi::Sign('/pages/other/entry/index?path=/pages/physical-examination/payment/index',$params,$nonce,$timestamp,true);
|
|
|
|
$pay_path="/pages/other/entry/index?path=/pages/physical-examination/payment/index";
|
|
|
|
|
|
|
|
$base64Signature=$XCXApi::Sign($pay_path,$params,$nonce,$timestamp,true);
|
|
|
|
$params['timestamp']=$timestamp;
|
|
|
|
$params['timestamp']=$timestamp;
|
|
|
|
$params['nonce']=$nonce;
|
|
|
|
$params['nonce']=$nonce;
|
|
|
|
$params['signature']=$base64Signature;
|
|
|
|
$params['signature']=$base64Signature;
|
|
|
|
|