pay/webapp/controller/PayController.class.php
aozhiwei 77366f1e23 1
2020-10-16 16:25:12 +08:00

21 lines
463 B
PHP

<?php
require 'phpcommon/tglog.php';
class PayController {
protected function getMysql($accountid)
{
$mysql_conf = getMysqlConfig(crc32($accountid));
$conn = new phpcommon\Mysql(array(
'host' => $mysql_conf['host'],
'port' => $mysql_conf['port'],
'user' => $mysql_conf['user'],
'passwd' => $mysql_conf['passwd'],
'dbname' => 'paydb'
));
return $conn;
}
}