BxModel.php 714 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Author: luzheng.liu
  4. * Time: 2020/9/18 15:13
  5. */
  6. namespace app\common\model\bx;
  7. use think\Model;
  8. class BxModel extends Model {
  9. protected $connection = [
  10. // 数据库类型
  11. 'type' => 'mysql',
  12. // 服务器地址
  13. 'hostname' => '180.166.104.67',
  14. // 数据库名
  15. 'database' => 'smddTestCopy',
  16. // 用户名
  17. 'username' => 'member_org',
  18. // 密码
  19. 'password' => 'A06af7cDfa6b970ef0A9db915Fa5a237',
  20. // 端口
  21. 'hostport' => '5904',
  22. // 连接dsn
  23. 'charset' => 'utf8',
  24. 'debug' => true,
  25. 'resultset_type' => 'array'
  26. ];
  27. }