Skip to content

Commit

Permalink
fix bug (#5)
Browse files Browse the repository at this point in the history
* fix bug

* add pdo port
  • Loading branch information
xiaoshangmin authored and jas0ncn committed Oct 24, 2017
1 parent c9a4fbd commit 0d6eb85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Auth/AuthAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static function getSessionKeyDirectly ($appId, $appSecret, $code) {
];

list($status, $body) = array_values(Request::get([
'url' => 'https://api.weixin.qq.com/sns/jscode2session?' . http_build_query($requestData),
'url' => 'https://api.weixin.qq.com/sns/jscode2session?' . http_build_query($requestParams),
'timeout' => Conf::getNetworkTimeout()
]));

Expand Down
2 changes: 1 addition & 1 deletion lib/Mysql/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function getInstance () {
$_pass = $mysql['pass'];
$_char = $mysql['char'];
$_db = $mysql['db'];
$dsn = "mysql:host=$_host;dbname=$_db;charset=$_char";
$dsn = "mysql:host=$_host;dbname=$_db;port=$_port;charset=$_char";

try {
self::$conn = new PDO($dsn, $_user, $_pass);
Expand Down

0 comments on commit 0d6eb85

Please sign in to comment.