Your Name 8 месяцев назад
Родитель
Сommit
4741cd5be0

+ 6 - 6
app/Module/Pet/Models/PetBattleLog.php

@@ -8,15 +8,15 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
 /**
  * 宠物战斗记录模型
  *
- * field start
- * @property   int  $id
- * @property   int  $pet_id
+ * field start 
+ * @property   int  $id  
+ * @property   int  $pet_id  
  * @property   int  $battle_type  战斗类型:1偷菜,2守护,3争霸赛
  * @property   int  $opponent_id  对手ID(可为空)
  * @property   int  $result  战斗结果:0失败,1胜利
  * @property   object|array  $reward  战斗奖励
- * @property   string  $battle_time
- * @property   \Carbon\Carbon  $created_at
+ * @property   string  $battle_time  
+ * @property   \Carbon\Carbon  $created_at  
  * field end
  */
 class PetBattleLog extends ModelCore
@@ -41,7 +41,7 @@ class PetBattleLog extends ModelCore
      */
     protected $table = 'pet_battle_logs';
 
-    // attrlist start
+    // attrlist start 
     protected $fillable = [
         'id',
         'pet_id',

+ 9 - 10
app/Module/Pet/Models/PetConfig.php

@@ -10,15 +10,14 @@ use App\Module\Pet\Casts\NumericAttributesCast;
 /**
  * 宠物配置模型
  *
- * field start
- *
- * @property   int $id
- * @property   string $pet_type  宠物类型
- * @property   object|array $grade_probability  品阶概率配置
- * @property   object|array $display_attributes  显示属性配置
- * @property   object|array $numeric_attributes  数值属性配置
- * @property   \Carbon\Carbon $created_at
- * @property   \Carbon\Carbon $updated_at
+ * field start 
+ * @property   int  $id  
+ * @property   string  $pet_type  宠物类型
+ * @property   object|array  $grade_probability  品阶概率配置
+ * @property   object|array  $display_attributes  显示属性配置
+ * @property   object|array  $numeric_attributes  数值属性配置
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
  * field end
  */
 class PetConfig extends ModelCore
@@ -31,7 +30,7 @@ class PetConfig extends ModelCore
      */
     protected $table = 'pet_configs';
 
-    // attrlist start
+    // attrlist start 
     protected $fillable = [
         'id',
         'pet_type',

+ 2 - 0
app/Module/Pet/Models/PetLevelConfig.php

@@ -11,6 +11,7 @@ use App\Module\Pet\Casts\NumericAttributesCast;
  *
  * field start 
  * @property   int  $id  
+ * @property   int  $pet_id  宠物 ID
  * @property   int  $level  等级
  * @property   int  $exp_required  升级所需经验值
  * @property   int  $stamina_max  最大体力值
@@ -34,6 +35,7 @@ class PetLevelConfig extends ModelCore
     // attrlist start 
     protected $fillable = [
         'id',
+        'pet_id',
         'level',
         'exp_required',
         'stamina_max',