|
|
@@ -526,7 +526,10 @@ class ShopClass extends BaseClass
|
|
|
public static function brokerageAddBalance($shop, $cash, $capitalType)
|
|
|
{
|
|
|
$amount = $cash->amount ?? 0;
|
|
|
+ $amount = floatval($amount);
|
|
|
$cashId = $cash->id ?? 0;
|
|
|
+
|
|
|
+ $customerSjName = $cash->sjName ?? '';
|
|
|
$customerName = $cash->shopName ?? '';
|
|
|
|
|
|
//获取的佣金 万分之三 暂时先写死,后续可走配置
|
|
|
@@ -540,7 +543,6 @@ class ShopClass extends BaseClass
|
|
|
$shop->txBalance = $currentTx;
|
|
|
$shop->save();
|
|
|
|
|
|
-
|
|
|
//增加余额变动记录
|
|
|
$tx = dict::getDict('yeTx', 'can');
|
|
|
$change = [
|
|
|
@@ -551,7 +553,7 @@ class ShopClass extends BaseClass
|
|
|
'txBalance' => $currentTx,
|
|
|
'io' => 1,
|
|
|
'payWay' => 0,
|
|
|
- 'event' => $customerName . "提现" . $amount . "元",
|
|
|
+ 'event' => $customerSjName . '-' . $customerName . "提现" . $amount . "元获得佣金",
|
|
|
'sjId' => $shop->sjId,
|
|
|
'shopId' => $shop->id,
|
|
|
'tx' => $tx,
|
|
|
@@ -595,7 +597,7 @@ class ShopClass extends BaseClass
|
|
|
'txBalance' => $currentPtTxBalance,
|
|
|
'io' => 1,
|
|
|
'payWay' => 0,
|
|
|
- 'event' => "【{$shop->merchantName} {$shop->shopName}】获得佣金,(" . $customerName . "提现" . $amount . "元)",
|
|
|
+ 'event' => "【{$shop->merchantName}-{$shop->shopName}】获得佣金,(" . $customerSjName . '-' . $customerName . "提现" . $amount . "元)",
|
|
|
'sjId' => $shop->sjId,
|
|
|
'shopId' => $shop->id,
|
|
|
'tx' => $tx,
|