|
|
@@ -52,6 +52,8 @@ class RechargeController extends BaseController
|
|
|
ini_set('date.timezone', 'Asia/Shanghai');
|
|
|
$wxPay = dict::getDict('payWay', 'wxPay');
|
|
|
$price = getenv('RECHARGE_PRICE') == false ? 5980 : getenv('RECHARGE_PRICE');
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ $shopAdminName = $shopAdmin['name'] ?? '';
|
|
|
$data = [
|
|
|
'amount' => $price,
|
|
|
'payWay' => $wxPay,
|
|
|
@@ -60,6 +62,8 @@ class RechargeController extends BaseController
|
|
|
'shopId' => $this->shopId,
|
|
|
'modPrice' => 0,
|
|
|
'remark' => '免费续期充值',
|
|
|
+ 'shopAdminId' => $this->shopAdminId,
|
|
|
+ 'shopAdminName' => $shopAdminName,
|
|
|
];
|
|
|
$order = RechargeClass::addOrder($data, true);
|
|
|
$orderSn = $order->orderSn;
|
|
|
@@ -114,6 +118,8 @@ class RechargeController extends BaseController
|
|
|
$get = Yii::$app->request->get();
|
|
|
$amount = $get['amount'] ?? 500;
|
|
|
$wxPay = dict::getDict('payWay', 'wxPay');
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ $shopAdminName = $shopAdmin['name'] ?? '';
|
|
|
$data = [
|
|
|
'amount' => $amount,
|
|
|
'payWay' => $wxPay,
|
|
|
@@ -122,6 +128,8 @@ class RechargeController extends BaseController
|
|
|
'shopId' => $this->shopId,
|
|
|
'modPrice' => 0,
|
|
|
'remark' => '',
|
|
|
+ 'shopAdminId' => $this->shopAdminId,
|
|
|
+ 'shopAdminName' => $shopAdminName,
|
|
|
];
|
|
|
$order = RechargeClass::addOrder($data, true);
|
|
|
$orderSn = $order->orderSn;
|