shish 5 anni fa
parent
commit
c8d406052e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      common/components/wxUtil.php

+ 1 - 0
common/components/wxUtil.php

@@ -657,6 +657,7 @@ class wxUtil
             $miniRefreshToken = $extend['miniRefreshToken'];
         }
         $now = time();
+        Yii::info("当前时间:{$now} 小程序accessToken过期时间:{$miniAccessTokenTime} merchant:" . json_encode($merchant));
         if ($now > strtotime($miniAccessTokenTime)) {
             $url = "https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token={$componentAccessToken}";
             $data = ['component_appid' => $component_appid, 'authorizer_appid' => $appId, 'authorizer_refresh_token' => $miniRefreshToken];