Agent.php 517 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * 后台 agent 表
  4. *
  5. */
  6. namespace app\common\model;
  7. class Agent extends \think\Model
  8. {
  9. protected $pk = 'id';
  10. protected $table = 'cy_agent';
  11. protected $agent = null;
  12. // 渠道号 自动修改
  13. /*protected function _makeAgentNo()
  14. {
  15. return date('YmdHis').rand(10, 99);
  16. }*/
  17. // 插入数据时自动,添加字段默认值
  18. protected $insert = array(
  19. 'agentname' => 'NOT_USED' ,
  20. 'username' => 'NOT_USED' ,
  21. 'owner' => 'NOT_USED' ,
  22. );
  23. }