更新
This commit is contained in:
@@ -180,6 +180,24 @@ class WecomPromotionController extends BaseAdminController
|
||||
return $this->run(fn () => $this->success('获客助手 API 权限验证通过', WecomPromotionLogic::checkApiPermission()));
|
||||
}
|
||||
|
||||
/** 推送当前方案的可用成员,不导入其他官方链接。 */
|
||||
public function syncMemberRange()
|
||||
{
|
||||
if (!$this->hasPagePermission()) {
|
||||
return $this->fail('权限不足');
|
||||
}
|
||||
if (!$this->request->isPost()) {
|
||||
return $this->fail('请使用 POST 同步成员范围');
|
||||
}
|
||||
$poolId = (int) $this->request->post('pool_id', 0);
|
||||
|
||||
return $this->run(fn () => $this->data(WecomPromotionLogic::syncMemberRange(
|
||||
$poolId,
|
||||
$this->adminId,
|
||||
$this->adminInfo
|
||||
)));
|
||||
}
|
||||
|
||||
public function syncRemoteLinks()
|
||||
{
|
||||
if (!$this->hasBasePagePermission()) {
|
||||
|
||||
Reference in New Issue
Block a user