|
|
@@ -157,6 +157,7 @@ class OrderController extends BaseController
|
|
|
header("Content-type: text/html; charset=utf-8");
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = isset($get['id']) ? $get['id'] : 0;
|
|
|
+ $recheck = $get['recheck'] ?? 0;
|
|
|
$order = OrderClass::getById($id, true);
|
|
|
OrderClass::valid($order, $this->mainId);
|
|
|
$orderSn = $order->orderSn ?? '';
|
|
|
@@ -171,8 +172,11 @@ class OrderController extends BaseController
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
-
|
|
|
- $payWay = $cg->payWay ?? dict::getDict('payWay', 'wxPay');
|
|
|
+ if ($recheck == 1) {
|
|
|
+ $payWay = $get['payWay'] ?? 0;
|
|
|
+ } else {
|
|
|
+ $payWay = $cg->payWay ?? dict::getDict('payWay', 'wxPay');
|
|
|
+ }
|
|
|
$capitalType = dict::getDict('capitalType', 'xhOrder', 'id');
|
|
|
if ($payWay == dict::getDict('payWay', 'wxPay')) {
|
|
|
//微信付款
|