|
@@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
|
|
|
use App\Models\Api\Personnel\EmployeeOpenid as EmployeeOpenidModel;
|
|
use App\Models\Api\Personnel\EmployeeOpenid as EmployeeOpenidModel;
|
|
|
use App\Facades\Servers\Logs\Log;
|
|
use App\Facades\Servers\Logs\Log;
|
|
|
use App\Servers\Wechat\Official;
|
|
use App\Servers\Wechat\Official;
|
|
|
|
|
+use App\Jobs\Manager\Process\SubscriptionJobs;
|
|
|
|
|
|
|
|
class OfficialNotify extends Controller
|
|
class OfficialNotify extends Controller
|
|
|
{
|
|
{
|
|
@@ -188,4 +189,18 @@ class OfficialNotify extends Controller
|
|
|
|
|
|
|
|
return $array ?: [];
|
|
return $array ?: [];
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 公众号测试消息订阅推送
|
|
|
|
|
+ * @author 唐远望
|
|
|
|
|
+ * @version 1.0
|
|
|
|
|
+ * @date 2026-03-10
|
|
|
|
|
+ */
|
|
|
|
|
+ public function test()
|
|
|
|
|
+ {
|
|
|
|
|
+ $message_data = ['notice_type'=>'low_price_goods'];
|
|
|
|
|
+ $response_data = SubscriptionJobs::dispatchSync($message_data);
|
|
|
|
|
+ return json_send(['code' => 'success', 'msg' => '执行成功', 'data' => $response_data]);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|