You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
442 B
PHTML
18 lines
442 B
PHTML
3 years ago
|
<?php
|
||
|
namespace Admin\Event;
|
||
|
|
||
|
use Think\Controller;
|
||
|
|
||
|
class MarketEvent extends Controller
|
||
|
{
|
||
|
private $MarketDepartmentId = "1,2";
|
||
|
public function getMarketGroupId()
|
||
|
{
|
||
|
$res = M('department','sys_')->where("id in ({$this->MarketDepartmentId})")->getField("group_ids",true);
|
||
|
$sendData = '';
|
||
|
foreach ($res as $value) {
|
||
|
$sendData .= $value.",";
|
||
|
}
|
||
|
return rtrim($sendData,",");
|
||
|
}
|
||
|
}
|