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)
115115 */
116116 public function callback ($ gatewayNmae )
117117 {
118- $ this ->order ['status ' ] = $ this ->completePurchase ($ gatewayNmae );
118+ $ this ->completePurchase ($ gatewayNmae );
119+ $ order = $ this ->orderModel ->getOrder ($ this ->order ['order_id ' ]);
119120 $ builderAsset = resolve ('builderAsset ' );
120- $ builderAsset ->config ('order ' ,$ this -> order );
121+ $ builderAsset ->config ('order ' ,$ order );
121122 view ()->share ('resources ' , $ builderAsset ->response ());//视图共享数据
122123 return view ('core::index ' ,[ 'model ' => 'omnipay ' ]);
123124 }
@@ -173,7 +174,6 @@ protected function completePurchase($gatewayNmae)
173174 ];
174175 break ;
175176 }
176- $ order ['gateway ' ] = $ gatewayNmae ;
177177 $ order ['status ' ] = 'paid ' ;
178178 $ this ->setOrder ($ order );
179179 return $ this ->orderModel ->paySuccess ($ order );
You can’t perform that action at this time.
0 commit comments