|
|
@ -68,13 +68,12 @@ class AgentController extends AdminController |
|
|
->if(fn() => $this->status == UserStatus::NORMAL) |
|
|
->if(fn() => $this->status == UserStatus::NORMAL) |
|
|
->display('') |
|
|
->display('') |
|
|
->then(function ($column) use ($last_template_id) { |
|
|
->then(function ($column) use ($last_template_id) { |
|
|
$is_success = $this->miniUpload->is_success ?? null; |
|
|
|
|
|
if (empty($this->appid)) { //注册小程序
|
|
|
if (empty($this->appid)) { //注册小程序
|
|
|
$column->append((new MiniProgramReg(null, 1))->setKey($this->id))->append(' '); |
|
|
$column->append((new MiniProgramReg(null, 1))->setKey($this->id))->append(' '); |
|
|
$column->append((new MiniProgramReg(null, 2))->setKey($this->id)); |
|
|
$column->append((new MiniProgramReg(null, 2))->setKey($this->id)); |
|
|
} else if ($is_success == 0 && $this->miniUpload->template_id == $last_template_id) { |
|
|
|
|
|
|
|
|
} else if ($this->miniUpload->is_success == 0 && $this->miniUpload->template_id == $last_template_id) { |
|
|
$column->append("已发布(模板:{$this->miniUpload->template_id})"); |
|
|
$column->append("已发布(模板:{$this->miniUpload->template_id})"); |
|
|
} else if (in_array($is_success, [-1, 2, 4])) { //如果状态是-1未检查过,或2审核中,或4审核延后,则显示审核状态按钮
|
|
|
|
|
|
|
|
|
} else if (in_array($this->miniUpload->is_success, [-1, 2, 4])) { //如果状态是-1未检查过,或2审核中,或4审核延后,则显示审核状态按钮
|
|
|
$column->append((new MiniProgramAuditStatus(null, 1))->setKey($this->id)); |
|
|
$column->append((new MiniProgramAuditStatus(null, 1))->setKey($this->id)); |
|
|
} else { |
|
|
} else { |
|
|
$column->append((new MiniProgramUpload(null, 1))->setKey($this->id)); |
|
|
$column->append((new MiniProgramUpload(null, 1))->setKey($this->id)); |
|
|
|