| xqd
@@ -1835,7 +1835,7 @@ class AlbumController extends Controller
|
|
|
|
|
|
$res_account = $this->accountMesage($open_id,$weChatApp,$name,$content);
|
|
|
\Log::info($weChatApp->wxFurniture_template_id);
|
|
|
- \Log::info($res_account);
|
|
|
+ \Log::info($user);
|
|
|
\Log::info($formId);
|
|
|
if ($user && $formId && !empty($weChatApp->wxFurniture_template_id) && $res_account['errcode']!=0) {
|
|
|
$config_app = [
|
| xqd
@@ -1879,8 +1879,8 @@ class AlbumController extends Controller
|
|
|
{
|
|
|
// Cache::flush();
|
|
|
$value = Cache::get($open_id);
|
|
|
-
|
|
|
- if ($open_id && !empty($weChatApp->wxaccount_template_id) ) {
|
|
|
+ \Log::info($value);\Log::info('2225');
|
|
|
+ if ($open_id && !empty($weChatApp->wxaccount_template_id) && (!$value || ($value + 60) <= time())) {
|
|
|
Cache::put($open_id, time(), 1);
|
|
|
/* $config = [
|
|
|
'app_id' => $weChatApp->G_app_id,
|
| xqd
@@ -1954,7 +1954,6 @@ class AlbumController extends Controller
|
|
|
{
|
|
|
$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $app->app_id . "&secret=" . $app->app_secret;
|
|
|
$data = $this->curlGet($url);
|
|
|
- \Log::info($data);
|
|
|
$data = json_decode($data, true);
|
|
|
if( !isset($data["access_token"]) )
|
|
|
{
|