时间调整钉钉
This commit is contained in:
parent
57e5019ed8
commit
b152df7058
@ -2,7 +2,7 @@
|
|||||||
$_CONFIG = array(
|
$_CONFIG = array(
|
||||||
//数据库相关
|
//数据库相关
|
||||||
'db' =>array(
|
'db' =>array(
|
||||||
'ip'=>'127.0.0.1', #数据库服务器IP
|
'ip'=>'10.0.0.38', #数据库服务器IP
|
||||||
'username'=>'root', #用户名
|
'username'=>'root', #用户名
|
||||||
'pwd'=>'root', #密码
|
'pwd'=>'root', #密码
|
||||||
'database'=>'leguevent', #数据库名
|
'database'=>'leguevent', #数据库名
|
||||||
|
@ -110,16 +110,16 @@ $issxarole = in_array($user['name'], $SXAROLES); //可以添加上线卡片
|
|||||||
$isyqeroles = in_array($user['name'], $YQEROLES);
|
$isyqeroles = in_array($user['name'], $YQEROLES);
|
||||||
|
|
||||||
//调试
|
//调试
|
||||||
// $user['name'] = "罗松柏";
|
$user['name'] = "吴昊";
|
||||||
// $canEdit = 1;
|
$canEdit = 1;
|
||||||
//$isgxyyerole=1;
|
$isgxyyerole=1;
|
||||||
//$isgxcperole=1;
|
$isgxcperole=1;
|
||||||
//$isgxyferole=1;
|
$isgxyferole=1;
|
||||||
//$isxfvrole=1;
|
$isxfvrole=1;
|
||||||
//$isxfyyerole=1;
|
$isxfyyerole=1;
|
||||||
//$isdbcperole=1;
|
$isdbcperole=1;
|
||||||
//$isdbyferole=1;
|
$isdbyferole=1;
|
||||||
//$isyqeroles =1;
|
$isyqeroles =1;
|
||||||
|
|
||||||
function fix2($v)
|
function fix2($v)
|
||||||
{
|
{
|
||||||
@ -250,6 +250,13 @@ if ($act == 'newevent') {
|
|||||||
|
|
||||||
$sql = DB::update('calendar', $dict, "id='{$id}'");
|
$sql = DB::update('calendar', $dict, "id='{$id}'");
|
||||||
DB::exe($sql);
|
DB::exe($sql);
|
||||||
|
|
||||||
|
// 钉钉通知
|
||||||
|
if(in_array($event['event'],['打包','版本更新','上线'])) {
|
||||||
|
$yanqiType = $isYanqi == 1 ? '延期' : '提前';
|
||||||
|
push("{$user['name']}对【{$event['game']}】进行了{$yanqiType}调整", "{$user['name']}对【{$event['game']}】进行了{$yanqiType}调整\n\n调整时间:由原来的{$event['start']} {$event['event']}\n\n 调整到:{$dict['end']}\n\n调整原因:{$reason}", '吴昊');
|
||||||
|
}
|
||||||
|
|
||||||
we('1');
|
we('1');
|
||||||
} else if ($act == 'delevent') {
|
} else if ($act == 'delevent') {
|
||||||
$id = r('id');
|
$id = r('id');
|
||||||
|
Loading…
Reference in New Issue
Block a user