|
@@ -37,7 +37,7 @@ class PaymentController extends Controller
|
37
|
37
|
}
|
38
|
38
|
|
39
|
39
|
|
40
|
|
- $out_trade_no = $order_type . "_" . $order_id;
|
|
40
|
+ $out_trade_no = $order_type . "-" . $order_id;
|
41
|
41
|
$app = app('wechat.payment');
|
42
|
42
|
|
43
|
43
|
$result = $app->order->unify([
|
|
@@ -81,7 +81,7 @@ class PaymentController extends Controller
|
81
|
81
|
$app = app('wechat.payment');
|
82
|
82
|
$response = $app->handlePaidNotify(function($message, $fail){
|
83
|
83
|
// 使用通知里的 "微信支付订单号" 或者 "商户订单号" 去自己的数据库找到订单
|
84
|
|
- $arrays = preg_split("/_/", $message['out_trade_no']);
|
|
84
|
+ $arrays = preg_split("/-/", $message['out_trade_no']);
|
85
|
85
|
$order_type = $arrays[0];
|
86
|
86
|
$order_id = $arrays[1];
|
87
|
87
|
$order = CommonController::getRecord($order_type, $order_id);
|