|
|
@@ -14,6 +14,7 @@ namespace App\Services\Api;
|
|
|
use App\Models\ActionLogModel;
|
|
|
use App\Models\MemberBankModel;
|
|
|
use App\Models\MemberModel;
|
|
|
+use App\Models\OrderModel;
|
|
|
use App\Services\BaseService;
|
|
|
use App\Services\ConfigService;
|
|
|
use App\Services\JwtService;
|
|
|
@@ -376,6 +377,7 @@ class MemberService extends BaseService
|
|
|
$info['vip_growth_1'] = ConfigService::make()->getConfigByCode('vip_growth_1');
|
|
|
$info['vip_growth_2'] = ConfigService::make()->getConfigByCode('vip_growth_2');
|
|
|
$info['vip_growth_progress'] = $info['vip_growth_2']?round($info['vip_growth']/$info['vip_growth_2'] * 100,2):0;
|
|
|
+ $info['order_count_1'] = (int)OrderModel::where(['user_id'=>$info['id'],'status'=>1,'mark'=>1])->count('id');
|
|
|
}
|
|
|
|
|
|
RedisService::set($cacheKey, $info, rand(10, 20));
|