dyjh 6 éve
szülő
commit
917831f5f9
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      app/Http/Controllers/Api/V1/AlbumController.php

+ 4 - 4
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -1718,15 +1718,15 @@ class AlbumController extends Controller
                 $content = '有用户分享了您的画册';
                 break;
         }
-        $weChatApp = AlbumManufacturerModel::where('store_id', $storeid)->first();
+        $weChatApp = AlbumManufacturerModel::where('store_id', $storeid)->first();\Log::info('2221');
         $config = [
             'app_id' => $weChatApp->G_app_id,
             'secret' => $weChatApp->G_app_secret,
             'response_type' => 'array',
-        ];
+        ];\Log::info('2224');
         $app = Factory::officialAccount($config);
-        $text = new Text($content);
-        $res_msg = $app->customer_service->message($text)->to($g_open_id)->send();\Log::info($res_msg);\Log::info('222');
+        $text = new Text($content);\Log::info('2223');
+        $res_msg = $app->customer_service->message($text)->to($g_open_id)->send();\Log::info($res_msg);
         if($user&&$formId){
             $this->wechat_app = AlbumManufacturerModel::where('store_id',$storeid)->first();
             $config = [