|
@@ -60,12 +60,13 @@ try
|
|
|
wxLog::DEBUG("result_code= {$ret_code}");
|
|
|
if($ret_code == 'SUCCESS')
|
|
|
{
|
|
|
- $out_trade_no = $result['out_trade_no'];
|
|
|
+ $out_trade_no = $result['out_trade_no']; // 给微信用的随机商户订单SN
|
|
|
+ $attach = $result['attach']; // 真正的我们平台的订单SN号
|
|
|
$transaction_id=$result['transaction_id'];
|
|
|
- wxLog::DEBUG("out_trade_no={$out_trade_no} and transaction_id = {$transaction_id}");
|
|
|
- Log::record("out_trade_no={$out_trade_no} and transaction_id = {$transaction_id}",Log::DEBUG);
|
|
|
+ wxLog::DEBUG("out_trade_no={$out_trade_no} and attach={$attach} and transaction_id = {$transaction_id}");
|
|
|
+ Log::record("out_trade_no={$out_trade_no} and attach={$attach} and transaction_id = {$transaction_id}",Log::DEBUG);
|
|
|
|
|
|
- $cb_info = app_payControl::update_order($out_trade_no,$transaction_id,'wxpay');
|
|
|
+ $cb_info = app_payControl::update_order($attach,$transaction_id,'wxpay');
|
|
|
|
|
|
if($cb_info['state'] == false) {
|
|
|
wxLog::ERROR('wxpay error 1.');
|
|
@@ -74,7 +75,7 @@ try
|
|
|
wxLog::DEBUG('wxpay success.');
|
|
|
Log::record('wxpay success.',Log::DEBUG);
|
|
|
$logic_delivery = Logic('delivery');
|
|
|
- $ret = $logic_delivery->putOrder($out_trade_no, $transaction_id);
|
|
|
+ $ret = $logic_delivery->putOrder($attach, $transaction_id);
|
|
|
}
|
|
|
|
|
|
$ret_wx['return_code'] = 'SUCCESS';
|