|
|
@ -197,6 +197,7 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
$welfare = $consume = $huitong = $contribution = 0; |
|
|
|
$welfare = $consume = $huitong = $contribution = 0; |
|
|
|
$consume = round($orderItem['total_price'] * $orderItem['commission_rate'] / 100, 2); |
|
|
|
$consume = round($orderItem['total_price'] * $orderItem['commission_rate'] / 100, 2); |
|
|
|
$consume = $this->_getValue($consume); |
|
|
|
$consume = $this->_getValue($consume); |
|
|
|
|
|
|
|
Log::info("+++++++++++++merchantAndPlatformAssets uid is ".$user['uid']); |
|
|
|
$logList[] = array( |
|
|
|
$logList[] = array( |
|
|
|
'uid' => $user['uid'], |
|
|
|
'uid' => $user['uid'], |
|
|
|
'asset_type' => self::ASSET_TYPE_CONSUME, |
|
|
|
'asset_type' => self::ASSET_TYPE_CONSUME, |
|
|
@ -749,6 +750,9 @@ class UserAssetsLogRepository extends BaseRepository |
|
|
|
foreach ($data as $item) { |
|
|
|
foreach ($data as $item) { |
|
|
|
$item['type'] = $changeType[$item['type']] ?? '未知'; |
|
|
|
$item['type'] = $changeType[$item['type']] ?? '未知'; |
|
|
|
$item['asset_type'] = $assetsType[$item['asset_type']] ?? '未知'; |
|
|
|
$item['asset_type'] = $assetsType[$item['asset_type']] ?? '未知'; |
|
|
|
|
|
|
|
if($item['status'] == self::STATUS_REFUND){ |
|
|
|
|
|
|
|
$item['type'] .= '(已退款)'; |
|
|
|
|
|
|
|
} |
|
|
|
if($item['count'] > 0){ |
|
|
|
if($item['count'] > 0){ |
|
|
|
$item['count'] = "+".$item['count']; |
|
|
|
$item['count'] = "+".$item['count']; |
|
|
|
} |
|
|
|
} |
|
|
|