|
|
|
@ -76,8 +76,8 @@ class Controller extends BaseController |
|
|
|
|
public function getUserPlatform(){ |
|
|
|
|
if ($this->admin['user']['role'] == 1) { |
|
|
|
|
//京东账号可以看到京东和自营的 |
|
|
|
|
if ($this->admin['user']['channel'] == 'jd') { |
|
|
|
|
$list = Channel::where('status', 1)->whereIn('code',['jd','zy'])->select(); |
|
|
|
|
if (strpos($this->admin['user']['channel'], 'jd') !== false) { |
|
|
|
|
$list = Channel::where('status', 1)->whereIn('code',[$this->admin['user']['channel'],'zy'])->select(); |
|
|
|
|
//苏宁账号可以看到苏宁和自营的 |
|
|
|
|
} elseif($this->admin['user']['channel'] == 'sn'){ |
|
|
|
|
$list = Channel::where('status', 1)->whereIn('code',['sn','zy'])->select(); |
|
|
|
|