Explorar o código

测试 easy 5.0, 设置Redis 缓存

liuzejian hai 1 ano
pai
achega
e8c67d98e4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/Console/Commands/WechatPlatform/Test.php

+ 3 - 1
app/Console/Commands/WechatPlatform/Test.php

@@ -6,6 +6,7 @@ use App\Jobs\WechatPlatform\GZHSendKFMessage;
 use App\Service\Util\Support\Trace\TraceContext;
 use App\Service\WechatPlatform\WechatPlatformConstService;
 use EasyWeChat\Factory;
+use EasyWeChat\Kernel\Messages\Text;
 use Illuminate\Console\Command;
 use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Facades\DB;
@@ -49,7 +50,8 @@ class Test extends Command
         $officialAccount = $openPlatform->officialAccount('wxebcb86ec4b80eaca',
             'refreshtoken@@@pOdN-RBZ1f475kZxXM66IcG2keHkv8V0mDs97JYa2TQ');
 
-        $res = $officialAccount->customer_service->message('hello, '. date('Y-m-d H:i:s'))
+        $text = new Text('kkkkkk');
+        $res = $officialAccount->customer_service->message($text)
             ->to('oHhd20dzCcfVjWt4OcGzFWISp6A4')
             ->send();
         dump($res);