|
|
@ -15,6 +15,7 @@ namespace app\controller\api; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use app\common\dao\store\order\StoreOrderDao; |
|
|
|
use app\common\dao\store\order\StoreOrderDao; |
|
|
|
|
|
|
|
use app\common\model\user\User; |
|
|
|
use app\common\repositories\store\order\StoreOrderRepository; |
|
|
|
use app\common\repositories\store\order\StoreOrderRepository; |
|
|
|
use app\common\repositories\store\order\StoreRefundOrderRepository; |
|
|
|
use app\common\repositories\store\order\StoreRefundOrderRepository; |
|
|
|
use app\common\repositories\system\notice\SystemNoticeConfigRepository; |
|
|
|
use app\common\repositories\system\notice\SystemNoticeConfigRepository; |
|
|
@ -158,6 +159,13 @@ class Auth extends BaseController |
|
|
|
$data = $user->toArray(); |
|
|
|
$data = $user->toArray(); |
|
|
|
$data['total_consume'] = $user['pay_price']; |
|
|
|
$data['total_consume'] = $user['pay_price']; |
|
|
|
$data['extension_status'] = systemConfig('extension_status'); |
|
|
|
$data['extension_status'] = systemConfig('extension_status'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$brokeragePrice = User::SumBrokeragePrice(); |
|
|
|
|
|
|
|
if($brokeragePrice > 0) { |
|
|
|
|
|
|
|
$data['point_price'] = bcdiv(systemConfig('all_award'), $brokeragePrice, 2); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$data['asset_price'] = bcmul($data['point_price'], $this->request->userInfo()->brokerage_price ?? 0,2); |
|
|
|
|
|
|
|
|
|
|
|
if (systemConfig('member_status')) |
|
|
|
if (systemConfig('member_status')) |
|
|
|
$data['member_icon'] = $this->request->userInfo()->member->brokerage_icon ?? ''; |
|
|
|
$data['member_icon'] = $this->request->userInfo()->member->brokerage_icon ?? ''; |
|
|
|
if ($data['is_svip'] == 3) |
|
|
|
if ($data['is_svip'] == 3) |
|
|
|