{php} $groupList = [ 'config'=>'icpbeian,gwabeian,sitelogo,notice,sitename,title,keywords,description,theme,domain,audittype,nlptype,aip_appid,aip_apikey,aip_secretkey,apikey,autolinks,cachelifetime,flagtype,freightitemfee', 'order'=>'order_timeout,order_refund_sync,auto_delivery_time,money_score,comment_score,sendnoticemode', 'express'=>'EBusinessID,kdNiaoApiKey,logisticstype,api_mode', 'rewrite'=>'domain,rewrite,urlsuffix,moduleurlsuffix', 'uniapp'=>'notice,wxapp,mobileurl,porfilePrompt,autoredirectmobile,wx_appid,wx_app_secret,mp_appid,mp_app_secret,app_id,app_secret,,logintypelist,wechatautocreate', 'other'=>'category_mode,phone,coupon_key', ]; $group = []; foreach($groupList as $k=>$v){ $item = explode(',', $v); $item = array_flip($item); $group = array_merge($group, array_map(function($value) use($k){return $k;}, $item)); } $epayInfo = get_addon_info('epay'); $thirdInfo = get_addon_info('third'); $areaInfo = \app\admin\model\shop\Area::where('id', '>', 0)->find(); function getArrayTitle($name){ $titleArr = [ 'rewrite'=>['控制器/方法', 'URL'], 'moduleurlsuffix'=>['模块', '后缀'], 'flagtype'=>['标识', '名称'], 'score'=>['模块', '积分'], 'limitscore'=>['模块', '积分'], ]; return $titleArr[$name]??['键名', '键值']; } {/php}
商城首页 会员中心 清除简单商城缓存
{php}{/php} {if !$epayInfo || !$epayInfo['state'] || !$thirdInfo || !$thirdInfo['state'] || !$areaInfo}
温馨提示:
{if !$epayInfo || !$epayInfo['state']} 未{:$epayInfo?'启用':'安装'}《微信支付宝整合》插件,点击前往
{/if} {if !$thirdInfo || !$thirdInfo['state']} 未{:$thirdInfo?'启用':'安装'}《第三方登录》插件,点击前往
{/if} {if !$areaInfo} 地区数据未导入,点击前往
{/if}
{/if}
{foreach $addon.config as $item} {/foreach}
{$item.title|htmlentities} {if $item.type=='array' && $item.tip} {/if}
{switch $item.type} {case string} {/case} {case text} {/case} {case array} {if $item.name == 'notice'}
标题 路径
{:__('Append')}
{else}
{php}list($arrayKeyTitle, $arrayValueTitle) = getArrayTitle($item['name']);{/php} {$arrayKeyTitle|htmlentities} {$arrayValueTitle|htmlentities}
{:__('Append')} {if $item.name=='moduleurlsuffix'} 一键移除后缀中的html {/if} {if $item.name=='rewrite'} 一键移除URL中的/shop {/if}
{/if} {/case} {case date} {/case} {case time} {/case} {case datetime} {/case} {case number} {/case} {case checkbox} {foreach name="item.content" item="vo"} {/foreach} {/case} {case radio} {foreach name="item.content" item="vo"} {/foreach} {/case} {case value="select" break="0"}{/case} {case value="selects"} {/case} {case value="image" break="0"}{/case} {case value="images"}
    {/case} {case value="file" break="0"}{/case} {case value="files"}
    {/case} {case value="gallery"} {php}$galleryImages = array_map(function($arr){return $arr['image'];}, (array)json_decode($item['value'], true));{/php}
      {/case} {case bool} {/case} {case editor} {/case} {/switch}