File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,10 @@ protected function unionpay($gateway,$order)
115
115
*/
116
116
public function callback ($ gatewayNmae )
117
117
{
118
- $ this ->order ['status ' ] = $ this ->completePurchase ($ gatewayNmae );
118
+ $ this ->completePurchase ($ gatewayNmae );
119
+ $ order = $ this ->orderModel ->getOrder ($ this ->order ['order_id ' ]);
119
120
$ builderAsset = resolve ('builderAsset ' );
120
- $ builderAsset ->config ('order ' ,$ this -> order );
121
+ $ builderAsset ->config ('order ' ,$ order );
121
122
view ()->share ('resources ' , $ builderAsset ->response ());//视图共享数据
122
123
return view ('core::index ' ,[ 'model ' => 'omnipay ' ]);
123
124
}
@@ -173,7 +174,6 @@ protected function completePurchase($gatewayNmae)
173
174
];
174
175
break ;
175
176
}
176
- $ order ['gateway ' ] = $ gatewayNmae ;
177
177
$ order ['status ' ] = 'paid ' ;
178
178
$ this ->setOrder ($ order );
179
179
return $ this ->orderModel ->paySuccess ($ order );
You can’t perform that action at this time.
0 commit comments