| xqd
@@ -1879,7 +1879,7 @@ class AlbumController extends Controller
|
|
|
{
|
|
|
// Cache::flush();
|
|
|
$value = Cache::get($open_id);
|
|
|
- \Log::info($value);\Log::info('2225');
|
|
|
+
|
|
|
if ($open_id && !empty($weChatApp->wxaccount_template_id) ) {
|
|
|
Cache::put($open_id, time(), 1);
|
|
|
/* $config = [
|
| xqd
@@ -1954,6 +1954,7 @@ 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["content"], true);
|
|
|
if( !isset($data["access_token"]) )
|
|
|
{
|