dyjh преди 6 години
родител
ревизия
0ad35cbf79
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd xqd
@@ -1715,6 +1715,9 @@ class AlbumController extends Controller
                 case 7;
                     $content = '有用户点击了您的号码';
                     break;
+                case 8;
+                    $content = '有用户点击了您的号码';
+                    break;
             }
             $weChatApp = AlbumManufacturerModel::where('store_id', $storeid)->first();
             $config = [
@@ -1724,7 +1727,7 @@ class AlbumController extends Controller
             ];
             $app = Factory::officialAccount($config);
             $text = new Text($content);
-            $app->customer_service->message($text)->to($g_open_id)->send();
+            $res_msg = $app->customer_service->message($text)->to($g_open_id)->send();\Log::info($res_msg);
             $this->wechat_app = AlbumManufacturerModel::where('store_id',$storeid)->first();
             $config = [
                 'app_id' => $this->wechat_app->app_id,