This commit is contained in:
aozhiwei 2019-08-22 10:35:35 +08:00
parent d5a109e2f1
commit 8e6f3ab49c
2 changed files with 15 additions and 1 deletions

View File

@ -421,7 +421,7 @@ class PayController{
$timestamp = time();
$params['sign'] = phpcommon\md5Sign($params, '06ba97e28ea905b0b7ed5477746b07f1', $timestamp);
$params['timestamp'] = $timestamp;
$iv = 'wx1dd2f605f4f8496b';
$iv = '1dd2f605f4f8496b';
$key = 'c868a478c81ff3c168b35d703f787d3c';
$str_encoded = '2001_' . base64_encode(phpcommon\aesEncrypt(json_encode($params), $iv, $key));
echo json_encode(array(

View File

@ -0,0 +1,14 @@
<?php
class ServerSwitchController {
public function getSwitch()
{
echo json_encode(array(
'errcode' => 0,
'errmsg' => '',
'payable' => 1
));
}
}