wang hou sheng 8 months ago
parent b51787b657
commit 5e420f7cce
  1. 17
      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();
$res = $obj->privacyInfo($appid);
if ($res == 'ok') {
if ($obj->submitAudit($appid)) {
return $this->renderSuccess('success');
}
} else {
return $this->renderError($res);
}
}
return $this->renderError('操作失败');
}

Loading…
Cancel
Save