gwang 3 роки тому
батько
коміт
7fcf3e4d20

+ 8 - 8
Gameserver/Amfphp/Services/TestServer.php

@@ -8,7 +8,7 @@ require_once __DIR__ . '/../process/ActiveProc/CipheredBase32.php';
 /**
  * Description of TestServer
  * UT 测试
- * @author jgao
+ * 约定: 底划线开头的函数为私有函数,不会在黑窗界面出现.
  */
 class TestServer {
 
@@ -31,7 +31,7 @@ class TestServer {
      *   sqldb操作性
      */
     static function selfTest() {
-        echoLine("phpver: " . PHP_VERSION . PHP_EOL);                           # 打印下PHP版本 
+        echoLine("phpver: " . PHP_VERSION . PHP_EOL);                           # 打印下PHP版本
         SelfChecker::CheckConfig();                                             # 进行配置环境检测
     }
 
@@ -80,17 +80,17 @@ SCR;
      * @param type $items
      * @param type $ctx
      */
-    public function sendUserEmail($uid,$zoneid,$title,$reward,$ctx) {
-        $mail = new Ins_Email(null,1, $title, #
+    public static function sendUserEmail($uid, $zoneid, $title, $reward, $ctx) {
+        $mail = new Ins_Email(null, 1, $title, #
                 $ctx, $reward);
         $list = explode(',', $uid);
-        if(count($list) != 0){
+        if (count($list) != 0) {
             foreach ($list as $userId) {
                 EmailProc::InsertMail($zoneid, $userId, $mail);
-            }                       
+            }
         }
-        
+
         echo '邮件已经成功发送';
     }
-    
+
 }

+ 9 - 4
Gameserver/Amfphp/model/User/Info_UserPVP.php

@@ -18,7 +18,7 @@ class Info_UserPVP extends Object_ext {
     public $dailyMatchRecord = array();
 
     /**
-     * @var object 防守阵容 
+     * @var object 防守阵容
      */
     public $defTeam = array("0", "0", "0");
 
@@ -28,7 +28,7 @@ class Info_UserPVP extends Object_ext {
     public $pvpCoins = 0;
 
     /**
-     * @var int 竞技场挑战票 
+     * @var int 竞技场挑战票
      */
     public $fightTicket = 0;
 
@@ -38,7 +38,7 @@ class Info_UserPVP extends Object_ext {
     public $fightTicketRefreshTs = 0;
 
     /**
-     * @var int 每天有3次免费挑战次数,每天8天重置 
+     * @var int 每天有3次免费挑战次数,每天8天重置
      */
     public $freeFightTickets = 0;
 
@@ -67,6 +67,11 @@ class Info_UserPVP extends Object_ext {
      */
     public $haventReward_season = 0;
 
+    /**
+     * @var ts 下次刷新对手时间戳,控制下刷新频率
+     */
+    public $nextRefreshTs = 0;
+
     /**
      * @var int 总胜利场次
      */
@@ -76,7 +81,7 @@ class Info_UserPVP extends Object_ext {
         // 刷新免费挑战次数
         if (tsDay($this->fightTicketRefreshTs) <= tsDay()) {                    # 刷新时间<=今天,该刷新了
             $this->freeFightTickets = 3;                                        # 重置为3, 此处的3可以改为读取配置数据
-            $this->fightTicketRefreshTs = now() + 86400;                        # 刷新时间设置为明天 
+            $this->fightTicketRefreshTs = now() + 86400;                        # 刷新时间设置为明天
         }
     }
 

+ 2 - 2
Gameserver/Amfphp/process/RankProc.php

@@ -193,11 +193,11 @@ class RankProc {
      * [6608]排行榜 - 查询通关榜突破记录
      */
     static function GetPassgateBreachLog() {
-        $key = MemKey_GameRun::Game_Rank_passage_BreachLog_hash(req()->zoneid);     # redis key 战力榜突破记录
+        $key = MemKey_GameRun::Game_Rank_passage_BreachLog_hash(req()->zoneid); # redis key 战力榜突破记录
         $kv = gMem()->hgetall($key);
         $ret = array();
         foreach ($kv as $condition => $uid) {
-            $uinfo = UserProc::getUserInfo(req()->zoneid, $uid);      # 读取玩家信息
+            $uinfo = UserProc::getUserInfo(req()->zoneid, $uid);                # 读取玩家信息
             $ret[$condition] = array(#                                          # 拼装玩家信息
                 'uid' => $uid,
                 'name' => my_null_default($uinfo->game->baseInfo->name, ""),

+ 18 - 10
Gameserver/Public/gonggao.html

@@ -80,20 +80,28 @@
                 </ul>
 
                 <div class="contantbox  right-box" style="height: 580px;">
-                    <div class="tab-pane server-con-item   active" style="background-image: url(&quot;app_files/1596439374.png&quot;); display: block;">
+                    <div class="tab-pane server-con-item   active" style="background-image: url(&quot;app_files/1.png&quot;); ">
                         <div class="server-con-item-wrapper animated fadeInUp">
                             <div class="server-con-item-wrapper-con">
                                 <div class="server-con-item-title"><b>版本更新公告</b></div>
                                 <div class="server-con-item-des"></div>
-<p style="text-indent:2em;">
-	<span>Think Different</span> 
-</p>
-<p style="text-indent:2em;">
-	<span>Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re not fond of rules. And they have no respect for the status quo. You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t do is ignore them. Because they change things. They push the human race forward. And while some may see them as the crazy ones, we see genius. Because the people who are crazy enough to think they can change the world, are the ones who do.</span> 
-</p>
-<p style="text-indent:2em;">
-	<span style="background-color:#E56600;"><span>- Apple Inc.<img src="./app_files/活动图片.png" width="100%" alt="" /></span><span style="background-color:#E53333;"><span style="background-color:#FFFFFF;"><span style="background-color:;"></span></span></span></span> 
-</p>
+                                    <p style="text-indent:2em;">
+                                            <span>Think Different</span> 
+                                    </p>
+                                    <p style="text-indent:2em;text-stroke:1px black; color:Yellow">
+                                            <span>Here’s to the crazy ones. The misfits. The rebels. 
+                                                The troublemakers. The round pegs in the square holes. 
+                                                The ones who see things differently. 
+                                                They’re not fond of rules. And they have no respect for the status quo. 
+                                                You can quote them, disagree with them, glorify or vilify them.
+                                                About the only thing you can’t do is ignore them. 
+                                                Because they change things. They push the human race forward.
+                                                And while some may see them as the crazy ones, we see genius.
+                                                Because the people who are crazy enough to think they can change the world, are the ones who do.</span> 
+                                    </p>
+                                    <p style="text-indent:2em;">
+                                        <span style="background-color:#E56600;"><span>- Apple Inc.<img src="./app_files/活动图片.png" style="width:100% ;display:flow;" alt="" /></span> </span> 
+                                    </p>
                             </div>
                             <a href="http://www.game7000.com/loyalsoft/" title="企业展示网站" class="btn btn-block btn-more" target="_self">前往官网</a>
                         </div>