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.
|
|
|
<?php
|
|
|
|
|
|
|
|
//use Admin\FinancialSummarySetController;
|
|
|
|
namespace Admin\Controller;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 新功能之后脚本初始化数据
|
|
|
|
*/
|
|
|
|
class OldCountController extends \Think\Controller
|
|
|
|
{
|
|
|
|
|
|
|
|
public function showMerchantInit()
|
|
|
|
{
|
|
|
|
//全部市场部不允许查看
|
|
|
|
$Event = A("Market","Event");
|
|
|
|
$gids = $Event->getMarketGroupId();
|
|
|
|
$where = [
|
|
|
|
'id'=>['in',$gids]
|
|
|
|
];
|
|
|
|
echo M("auth_group","sys_")->where($where)->save(['show_merchant'=>0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function eventTest($event,$action,$arg = false)
|
|
|
|
{
|
|
|
|
$Event = A($event,"Event");
|
|
|
|
if(!$arg){
|
|
|
|
$res = $Event->$action();
|
|
|
|
}else{
|
|
|
|
$res = call_user_func_array(array($Event, $action), explode(":",$arg));
|
|
|
|
}
|
|
|
|
|
|
|
|
dd($res);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|