Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
tangwch committed Sep 9, 2019
1 parent a3230a3 commit c20d787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth_new.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ function getSign($data, $secret) {
$json = json_decode($data);

if ($json->status == 200) {
$d = openssl_decrypt($json->res, "", $appSecret, 0, "00000000");
$d = openssl_decrypt($json->res, "DES-CBC", $appSecret, 0, "00000000");
// $des = new CryptDes($appSecret);
// $json->res = $des->decrypt($json->res);
$json->res = json_decode($d);
$json->res = json_decode($d, true);
}
//显示获得的数据
print_r($json);

0 comments on commit c20d787

Please sign in to comment.