|
@@ -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);
|