wang hou sheng 10 months ago
parent bea4d52894
commit a58b0474bd
  1. 4
      app/admin/controller/Wxserve.php
  2. 12
      app/common/library/wxserver/Server.php

@ -227,8 +227,8 @@ class Wxserve extends Controller
{ {
$appid = $this->request->get('appid'); $appid = $this->request->get('appid');
$obj = new Server(); $obj = new Server();
$res = $obj->getPrivacySetting($appid); $res = $obj->privacyInfo($appid);
if ($res) { if ($res == 'ok') {
$result = $obj->submitAuditOne($appid); $result = $obj->submitAuditOne($appid);
if ($result['status']) { if ($result['status']) {
return $this->renderSuccess('success'); return $this->renderSuccess('success');

@ -538,13 +538,13 @@ class Server
if ($token) { if ($token) {
$url = "https://api.weixin.qq.com/cgi-bin/component/setprivacysetting?access_token=$token"; $url = "https://api.weixin.qq.com/cgi-bin/component/setprivacysetting?access_token=$token";
$setting_list = [ $setting_list = [
// ['privacy_key' => 'PhoneNumber', 'privacy_text' => '用于用户一键登录'], ['privacy_key' => 'PhoneNumber', 'privacy_text' => '用于用户一键登录'],
['privacy_key' => 'Location', 'privacy_text' => '用于用户选择自提点'], ['privacy_key' => 'Location', 'privacy_text' => '用于用户选择自提点'],
// ['privacy_key' => 'AlbumWriteOnly', 'privacy_text' => '用于用户保存海报'], ['privacy_key' => 'AlbumWriteOnly', 'privacy_text' => '用于用户保存海报'],
// ['privacy_key' => 'Address', 'privacy_text' => '用于用户快速获取微信地址'], ['privacy_key' => 'Address', 'privacy_text' => '用于用户快速获取微信地址'],
// ['privacy_key' => 'Invoice', 'privacy_text' => '用于用户申请开票'], ['privacy_key' => 'Invoice', 'privacy_text' => '用于用户申请开票'],
// ['privacy_key' => 'Album', 'privacy_text' => '用于用户上传图片'], ['privacy_key' => 'Album', 'privacy_text' => '用于用户上传图片'],
// ['privacy_key' => 'Clipboard', 'privacy_text' => '用于用户复制粘贴'], ['privacy_key' => 'Clipboard', 'privacy_text' => '用于用户复制粘贴'],
]; ];
$data['setting_list'] = $setting_list; $data['setting_list'] = $setting_list;
$data['owner_setting']['contact_qq'] = '527264601'; $data['owner_setting']['contact_qq'] = '527264601';

Loading…
Cancel
Save