DispatchSkill.php 594 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. /**
  5. * 模型
  6. */
  7. class DispatchSkill extends Model
  8. {
  9. // 开启自动写入时间戳字段
  10. protected $autoWriteTimestamp = 'int';
  11. // 定义时间戳字段名
  12. protected $createTime = 'createtime';
  13. /**
  14. * 获取技能信息
  15. */
  16. public function getSkillInfo($skill_id) {
  17. // 获取技能信息
  18. $skillModel = new \app\common\model\DispatchSkill();
  19. $where = [];
  20. $where["id"] = $skill_id;
  21. $skillInfo = $skillModel->where($where)->find();
  22. return $skillInfo;
  23. }
  24. }