|
@@ -122,11 +122,11 @@ function update_user_growth($user_id,$growth,$type,$desc,$data = [])
|
|
|
* 获取access_token
|
|
|
*/
|
|
|
function get_access_token(){
|
|
|
- $app_id = 'wx8e881917d7c4c283';
|
|
|
- $app_secret ='4ce802c5bec4be9cf774e1103f6aa8ba';
|
|
|
+ $app_id = 'wx4ccfaf737dd24004';
|
|
|
+ $app_secret ='a7a7e0e7e3ce132f751e85202a09e0dc';
|
|
|
$session = new Session();
|
|
|
$over_time = $session->get('token_over_time');
|
|
|
- if($over_time < time()) {
|
|
|
+ if($over_time < time() || true) {
|
|
|
$url= "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$app_id}&secret={$app_secret}";
|
|
|
$ret = http_curl($url);
|
|
|
$session->set('access_token',$ret['access_token']);
|