feat(ProductLists.php): 添加用户ID获取方式
This commit is contained in:
parent
150812e936
commit
02d488c296
@ -108,8 +108,14 @@ class ProductLists extends BaseApiDataLists implements ListsSearchInterface, Lis
|
|||||||
$price = 'price';
|
$price = 'price';
|
||||||
$op_price = 'price';
|
$op_price = 'price';
|
||||||
$off_activity = 0;
|
$off_activity = 0;
|
||||||
if ($this->userId > 0) {
|
$uid=0;
|
||||||
$user_ship = User::where('id', $this->userId)->value('user_ship');
|
if($this->request->get('uid')){
|
||||||
|
$uid=$this->request->get('uid');
|
||||||
|
}elseif($this->userId>0){
|
||||||
|
$uid=$this->userId;
|
||||||
|
}
|
||||||
|
if ($uid > 0) {
|
||||||
|
$user_ship = User::where('id', $uid)->value('user_ship');
|
||||||
if (in_array($user_ship, [4, 5, 6, 7])) {
|
if (in_array($user_ship, [4, 5, 6, 7])) {
|
||||||
$price = 'cost';
|
$price = 'cost';
|
||||||
$op_price = 'price';
|
$op_price = 'price';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user