|
|
|
@ -93,7 +93,7 @@ class Invite extends Controller |
|
|
|
|
public function inviteWholesalerList(): Json |
|
|
|
|
{ |
|
|
|
|
//1.查询需要的邀请人数是多少 |
|
|
|
|
$setting = Setting::where(['key'=>'condition'])->field('values')->find(); |
|
|
|
|
$setting = Setting::where(['key'=>'commission'])->field('values')->find(); |
|
|
|
|
$setting = json_decode($setting,true); |
|
|
|
|
$invite_num = $setting['values']['invite_num'] ?? 10; |
|
|
|
|
|
|
|
|
@ -139,7 +139,7 @@ class Invite extends Controller |
|
|
|
|
{ |
|
|
|
|
$storeId = $this->storeId; |
|
|
|
|
//1.查询需要的邀请人数是多少 |
|
|
|
|
$setting = Setting::where(['key'=>'condition'])->field('values')->find(); |
|
|
|
|
$setting = Setting::where(['key'=>'commission'])->field('values')->find(); |
|
|
|
|
$setting = json_decode($setting,true); |
|
|
|
|
$invite_num = $setting['values']['invite_num'] ?? 10; |
|
|
|
|
//2.查询当前用户邀请的人数,判断比较 |
|
|
|
|