1
This commit is contained in:
parent
f715cad303
commit
d83692f64c
@ -19,22 +19,22 @@ class UnifiedWeiXin extends BaseSdk {
|
||||
public function preOrder()
|
||||
{
|
||||
$params = array(
|
||||
'appid' => '1517300671',
|
||||
'mch_id' => 'aFUFoU2weMEqQouNvYLyMB23xJppuw5w',
|
||||
'appid' => 'wx9b006ee01033cec7',
|
||||
'mch_id' => '1509252791',
|
||||
'nonce_str' => uniqid('201019'),
|
||||
'body' => '',
|
||||
'out_trade_no' => '',
|
||||
'total_fee' => '',
|
||||
'out_trade_no' => uniqid('201019'),
|
||||
'total_fee' => '0.01',
|
||||
'spbill_create_ip' => phpcommon\getIPv4(),
|
||||
'notify_url' => 'https://gamepay.kingsome.cn/webapp/paynotify/unified_weixin.php',
|
||||
'trade_type' => '',
|
||||
'trade_type' => 'MWEB',
|
||||
'scene_info' => '',
|
||||
);
|
||||
if (SERVER_ENV != _ONLINE) {
|
||||
$params['notify_url'] = 'https://gamepay-test.kingsome.cn/webapp/paynotify/unified_weixin.php';
|
||||
}
|
||||
$sign = phpcommon\wxPaySign($params,
|
||||
''
|
||||
'ZTlMqTh5lRNefcH2KHroQqxdShEiedD0'
|
||||
);
|
||||
$params['sign'] = strtoupper($sign);
|
||||
error_log(json_encode($params));
|
||||
|
Loading…
x
Reference in New Issue
Block a user