|
@@ -8,7 +8,9 @@
|
|
|
namespace app\models\user;
|
|
|
|
|
|
use crmeb\basic\BaseModel;
|
|
|
+use crmeb\services\AlipayService;
|
|
|
use crmeb\services\MiniProgramService;
|
|
|
+use crmeb\services\SystemConfigService;
|
|
|
use crmeb\services\WechatService;
|
|
|
use crmeb\traits\ModelTrait;
|
|
|
|
|
@@ -99,8 +101,8 @@ class UserRecharge extends BaseModel
|
|
|
{
|
|
|
return WechatService::jsPay(WechatUser::uidToOpenid($orderInfo['uid'], 'openid'), $orderInfo['order_id'], $orderInfo['price'], 'user_recharge', '用户充值');
|
|
|
}
|
|
|
-
|
|
|
- public static function aliPay($orderInfo)
|
|
|
+
|
|
|
+ public static function aliPay($orderInfo)
|
|
|
{
|
|
|
if (!$orderInfo || !isset($orderInfo['paid'])) exception('支付订单不存在!');
|
|
|
if ($orderInfo['paid']) exception('支付已支付!');
|
|
@@ -183,7 +185,7 @@ class UserRecharge extends BaseModel
|
|
|
'real_name' => $user['nickname'],
|
|
|
'extract_type' => 'balance',
|
|
|
'extract_price' => $price,
|
|
|
- 'balance' => bcsub($user['brokerage_price'],$price,2),
|
|
|
+ 'balance' => bcsub($user['brokerage_price'], $price, 2),
|
|
|
'add_time' => time(),
|
|
|
'status' => 1
|
|
|
];
|