cyzhao 2 сар өмнө
parent
commit
2823e36404

+ 1 - 3
Gameserver/App/configs/GameConfig.php

@@ -3,11 +3,9 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2025-03-24 14:31:28
+ // 日期: 2025-03-25 10:27:29
 ////////////////////
 
-namespace loyalsoft;
-
 /**
  * 常量配置数据 
  */

+ 2 - 2
Gameserver/App/configs/config_tap.php

@@ -42,14 +42,14 @@ class config_tap extends config {
         $this->nosql->host = "10.88.20.16";                                     # host/ip
         $this->nosql->port = 6379;                                              # 端口
         $this->nosql->pwd = 'wanggang1985';                                     # 密钥
-        $this->nosql->db = 10;                                                  # db索引
+        $this->nosql->db = 11;                                                  # db索引
     }
 
     /**
      * MongoDB
      */
     protected function _InitMongoDB() {
-        $this->mongo->db = 'jzhj2024_tap_t2';
+        $this->mongo->db = 'jzhj2024_tap_t3';
         $this->mongo->conn = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@10.88.0.14:23333/?authSource=ylsj2019";
         $this->mongo->conn = "mongodb://mongouser:wanggang1985@10.88.24.17:27017,10.88.24.5:27017/test?replicaSet=cmgo-bw110ojx_0&authSource=admin";
     }

+ 60 - 0
Gameserver/App/model/User/Ins_ExploreArea.php

@@ -0,0 +1,60 @@
+<?php
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+namespace loyalsoft;
+
+/**
+ * Description of Ins_BreedEggSlot
+ *
+ * @author c'y'zhao
+ */
+class Ins_BreedEggSlot extends Object_ext{
+    /**
+     * 坑位id
+     */
+    public $uid = 0;       
+    
+    /**
+     * 坑位上孵化的蛋
+     */
+    public $eggId = 0;       
+    
+    /**
+     * 开始孵化时间
+     * @var type
+     */
+    public $endTs = 0;
+    
+    /**
+     * 是否解锁 0:没有
+     * @var type
+     */
+    public $unlock = 0;
+
+    /**
+     * 构造函数
+     * @param type $args
+     */
+    public function __construct($args = null) {
+        if($args !=null){
+            parent::__construct($args);
+        } else {
+            
+        }                
+    }
+    
+    /**
+     * 配置
+     * @return sm_pet_egg
+     */
+    public function mo() {
+        $mo = GameConfig::pet_egg_getItem($this->eggId);
+        my_Assert(null != $mo, ErrCode::err_const_no);
+        return $mo;
+    }
+}