|
|
|
@ -176,17 +176,17 @@ class Wxserve extends Controller |
|
|
|
|
*/ |
|
|
|
|
public function commit(): Json |
|
|
|
|
{ |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
$appids = $this->request->get('appid'); |
|
|
|
|
if (!is_array($appids)) { |
|
|
|
|
$appids = [$appids]; |
|
|
|
|
} |
|
|
|
|
$template_id = $this->request->get('template_id'); |
|
|
|
|
if ($appid && $template_id) { |
|
|
|
|
$appids = explode(',', $appid); |
|
|
|
|
if ($appids) { |
|
|
|
|
if ($appids && $template_id) { |
|
|
|
|
foreach ($appids as $item) { |
|
|
|
|
WxserverJob::dispatch(['appid' => $item, 'template_id' => $template_id]); |
|
|
|
|
} |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -214,16 +214,16 @@ class Wxserve extends Controller |
|
|
|
|
*/ |
|
|
|
|
public function audit(): Json |
|
|
|
|
{ |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
if ($appid) { |
|
|
|
|
$appids = explode(',', $appid); |
|
|
|
|
$appids = $this->request->get('appid'); |
|
|
|
|
if (!is_array($appids) && $appids) { |
|
|
|
|
$appids = [$appids]; |
|
|
|
|
} |
|
|
|
|
if ($appids) { |
|
|
|
|
foreach ($appids as $item) { |
|
|
|
|
WxserverJob::dispatch(['appid' => $item]); |
|
|
|
|
} |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|