From 5e420f7ccef36de90bef49605f246bf9add29dda Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:51:35 +0800 Subject: [PATCH] 1 --- app/admin/controller/Wxserve.php | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/Wxserve.php b/app/admin/controller/Wxserve.php index 8c5a8cd7..93a19144 100644 --- a/app/admin/controller/Wxserve.php +++ b/app/admin/controller/Wxserve.php @@ -81,6 +81,17 @@ class Wxserve extends Controller if (!empty($item['experience_code'])) { $item['experience_code'] = $this->request->domain(true) . $item['experience_code'] . '?time=' . time(); } + if ($item['audit_status'] == 0) { + $item['audit_status_text'] = '未发布版本'; + } elseif ($item['audit_status'] == 1) { + $item['audit_status_text'] = '审核中'; + } elseif ($item['audit_status'] == 2) { + $item['audit_status_text'] = '审核通过'; + } elseif ($item['audit_status'] == 3) { + $item['audit_status_text'] = '审核失败'; + } elseif ($item['audit_status'] == 4) { + $item['audit_status_text'] = '延时审核'; + } unset($item['access_token']); unset($item['refresh_token']); unset($item['signature']); @@ -205,9 +216,15 @@ class Wxserve extends Controller $appid = $this->request->get('appid'); if ($appid) { $obj = new Server(); - if ($obj->submitAudit($appid)) { - return $this->renderSuccess('success'); + $res = $obj->privacyInfo($appid); + if ($res == 'ok') { + if ($obj->submitAudit($appid)) { + return $this->renderSuccess('success'); + } + } else { + return $this->renderError($res); } + } return $this->renderError('操作失败'); }