wang hou sheng 9 months ago
parent 453cb71d43
commit 8b5556aaee
  1. 12
      app/admin/controller/Wxserve.php

@ -176,11 +176,9 @@ class Wxserve extends Controller
*/
public function commit(): Json
{
$appids = $this->request->get('appid');
if (!is_array($appids)) {
$appids = [$appids];
}
$appid = $this->request->get('appid');
$template_id = $this->request->get('template_id');
$appids = explode(',', $appid);
if ($appids && $template_id) {
foreach ($appids as $item) {
WxserverJob::dispatch(['appid' => $item, 'template_id' => $template_id]);
@ -214,10 +212,8 @@ class Wxserve extends Controller
*/
public function audit(): Json
{
$appids = $this->request->get('appid');
if (!is_array($appids) && $appids) {
$appids = [$appids];
}
$appid = $this->request->get('appid');
$appids = explode(',', $appid);
if ($appids) {
foreach ($appids as $item) {
WxserverJob::dispatch(['appid' => $item]);

Loading…
Cancel
Save