工会web

This commit is contained in:
cyw
2026-02-24 09:25:17 +08:00
parent 6444f9f72e
commit ab4066dd14
801 changed files with 74278 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?php
include_once("../../../inc/admin.inc.php");
include_once("../../../inc/class.php");
include_once("../../../inc/admin.smarty.php");
include_once("../../../inc/admin.power.php");
//exit;
//ÇĺżŐĘýžÝ
//$db->query("TRUNCATE TABLE AccountsInfo");
$db->query("TRUNCATE TABLE AgentRecharge");
//$db->query("TRUNCATE TABLE AndroidLockInfo");
$db->query("TRUNCATE TABLE CountJf");
$db->query("TRUNCATE TABLE CountUserJf");
//$db->query("TRUNCATE TABLE IndividualDatum");
$db->query("TRUNCATE TABLE ShopLog");
$db->query("TRUNCATE TABLE SystemStreamInfo");
$db->query("TRUNCATE TABLE YuanBaoDay");
$db->query("TRUNCATE TABLE YuanBaoLog");
$db->query("TRUNCATE TABLE QPPlatformDB.dbo.OnLineStreamInfo");
//$db->query("TRUNCATE TABLE QPPlatformDB.dbo.UnionRoomInfo");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.AdminOperateLog");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.AgentDealLog");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.AgentList");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.AgentLogonLog");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.ExchangeLog");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.SystemSecurity");
$db->query("TRUNCATE TABLE QPPlatformManagerDB.dbo.SystemStreamInfo");
$db->query("TRUNCATE TABLE QPRecordDB.dbo.RecordAccountsExpend");
$db->query("TRUNCATE TABLE QPRecordDB.dbo.RecordGrantTreasure");
//$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameScoreInfo");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameScoreLog");
//$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnion");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionCard");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionConsumer");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionDay");
//$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionGold");
//$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionKind");
//$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionMember");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.GameUnionMonth");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.PayToPlayerLog");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.PrivateGameRecord");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.PrivateGameRecordChild");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.PrivateGameRecordUserRecordID");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.RecordUserInout");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.ScoreRankRewardLog");
$db->query("TRUNCATE TABLE QPTreasureDB.dbo.SystemStreamInfo");
echo "OK";
$db->close();
unset($GG,$ppxq,$db);
?>

View File

@@ -0,0 +1,89 @@
<?php
include_once("../../../inc/admin.inc.php");
include_once("../../../inc/class.php");
include_once("../../../inc/admin.smarty.php");
include_once("../../../inc/admin.power.php");
exit;
//µ¼ÈëÊý¾Ý
/*AccountsInfo UserID
AndroidLockInfo UserID
IndividualDatum UserID
QPPlatformDB.dbo.UnionRoomInfo id
QPTreasureDB.dbo.GameScoreInfo UserID
QPTreasureDB.dbo.GameUnion UnionID
QPTreasureDB.dbo.GameUnionKind id
QPTreasureDB.dbo.GameUnionMember UnionMemberID*/
$tabCon = [
['table'=>'AccountsInfo','zid'=>'UserID'],
['table'=>'AndroidLockInfo','zid'=>'UserID'],
['table'=>'IndividualDatum','zid'=>'UserID'],
['table'=>'QPPlatformDB.dbo.UnionRoomInfo','zid'=>'id'],
['table'=>'QPTreasureDB.dbo.GameScoreInfo','zid'=>'UserID'],
['table'=>'QPTreasureDB.dbo.GameUnion','zid'=>'UnionID'],
['table'=>'QPTreasureDB.dbo.GameUnionKind','zid'=>'id'],
['table'=>'QPTreasureDB.dbo.GameUnionMember','zid'=>'UnionMemberID']
];
function chu($arr){
if(is_array($arr)){
$all = [];
foreach ($arr as $k => $v){
if(is_object($v)){
$obj = (array)$v;
$all[] = "'".$obj['date']."'";
}else{
$all[] = "'".str_replace([',',"'"],['£¬','`'],$v)."'";
}
}
//return $all;
return "(".implode(',',$all).")";
}
}
$db->links('old');
$num = $GG['num'] ? $GG['num'] : 0;
$GG['page'] = $GG['page'] ? $GG['page'] : 1;
if($num >= count($tabCon)){
echo "OK";
exit;
}
$all = $db->page([
"sql"=>"select * from ".$tabCon[$num]['table']." order by ".$tabCon[$num]['zid']." asc",
"count"=>"select count(*) from ".$tabCon[$num]['table'],
"key"=>$tabCon[$num]['zid'],
"table"=>$tabCon[$num]['table'],
"page"=>$GG['page'],
"pageSize"=>2
]);
if($all){
foreach ($all['data'] as $k => $v){
$data[] = chu($v);
}
$key = array_keys($all['data'][0]);
$sql = "INSERT INTO ".$tabCon[$num]['table']." (".implode(',', $key).") VALUES ".implode(',',$data)." ";
$db->links();
print_r($sql);
print_r($all);
$db->query($sql);
if($GG['page'] <= $all['page']['maxPage']){
$page = $GG['page']+1;
echo $tabCon[$num]['table']." = ".$GG['page']."/".$all['page']['maxPage'];
//echo "<script>location.href='?num=".$num."&page=".$page."';</script>";
}else{
if($num < count($tabCon)){
$num = $num+1;
echo "<script>location.href='?num=".$num."';</script>";
}else{
echo "OK";
}
}
}
$db->close();
unset($GG,$ppxq,$db);
?>

View File

@@ -0,0 +1,111 @@
<?php
include_once("../../../inc/admin.inc.php");
include_once("../../../inc/class.php");
include_once("../../../inc/admin.smarty.php");
include_once("../../../inc/admin.power.php");
$GG['page'] = $GG['page'] ? $GG['page'] : 1;
$GG['maxpage'] = $GG['maxpage'] ? $GG['maxpage'] : 2;
if($GG['page'] > $GG['maxpage']){
echo "ok";
exit;
}
$rdate = '2019-11-10';
$rtime = strtotime($rdate);
echo $rtime."<br>";
/*
$db->deldate("QPTreasureDB.dbo.GameUnionGold","InsertTime<'2019-05-01'");
/*
$db->deldate("QPTreasureDB.dbo.GameUnionDay","UnionDay<'".$rdate."'");
$db->deldate("QPTreasureDB.dbo.GameUnionMonth","UnionMonth<'2019-11'");
$db->deldate("QPTreasureDB.dbo.GameUnionCard","InsertTime<'".$rdate."'");
$db->deldate("QPTreasureDB.dbo.GameUnionConsumer","InsertTime<'".$rdate."'");
*/
/*
$db->deldate("ShopLog","ShopLogTime<'".$rdate."'");
$db->deldate("SystemStreamInfo","CollectDate<'".$rdate."'");
*/
/*
$db->deldate("YuanBaoDay","Day<'".$rdate."'");
$db->deldate("YuanBaoLog","LoTime<'".$rdate."'");
*/
/*
$db->deldate("CountJf","Month<'2019-11'");
*/
/*6
$db->deldate("CountUserJf","Days<'".$rdate."'");
*/
/*5
$db->deldate("QPTreasureDB.dbo.RecordUserInout","convert(varchar(10),EnterTime,120)<'".$rdate."'");
*/
/*4
$db->deldate("QPTreasureDB.dbo.GameScoreLog","convert(varchar(10),CostTime,120)<'".$rdate."'");
*/
/*3
$db->deldate("QPTreasureDB.dbo.PayToPlayerLog","convert(varchar(10),InsertTime,120)<'".$rdate."'");
*/
/*2
$db->deldate("AgentRecharge","convert(varchar(10),AddDate,120)<'".$rdate."'");
*/
/*1
$all = $db->page([
"sql"=>"select *,convert(char,RegisterDate,120) as RDate,convert(char,LastLogonDate,120) as Date from QPTreasureDB.dbo.GameScoreInfo order by UserID asc",
"count"=>"select count(*) from QPTreasureDB.dbo.GameScoreInfo",
"key"=>"UserID",
"table"=>"QPTreasureDB.dbo.GameScoreInfo",
"order"=>"UserID asc",
"page" =>$GG['page'],
"pageSize"=>100
]);
foreach ($all['data'] as $k => $v){
if($v['UserID']){
$save = [];
echo $v['UserID']."<br>";
echo strtotime($v['RDate']) ."<". $rtime."<br>";
if(strtotime($v['RDate']) < $rtime){
$r_date = explode(" ",$v['RDate']);
$n_date = $rdate." ".$r_date[1];
$save['RegisterDate'] = $n_date;
echo "OK"."<br>";
}
echo strtotime($v['Date']) ."<". $rtime."<br>";
if(strtotime($v['Date']) < $rtime){
$d_date = explode(" ",$v['Date']);
$m_date = $rdate." ".$d_date[1];
$save['LastLogonDate'] = $m_date;
echo "OK"."<br>";
}
//print_r($save);
if($save){
$db->update('AccountsInfo',$save,"UserID='".$v['UserID']."'");
$db->update('QPTreasureDB.dbo.GameScoreInfo',$save,"UserID='".$v['UserID']."'");
}
}
}
*/
//$page = $all['page']['page']+1;
//echo $GG['page'].'/'.$all['page']['maxPage'];
//echo '<script>location.href="?page='.$page.'&maxpage='.$all['page']['maxPage'].'&time='.time().'";</script>';
$db->close();
unset($GG,$ppxq,$db);
?>