You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
behavior
common
conf
exception
model
Addons.php
Ads.php
Aliyunoss.php
Areas.php
Auth.php
AuthFamily.php
Banks.php
Base.php
Brands.php
Carts.php
CashConfigs.php
CashDraws.php
ChargeItems.php
CompanyBank.php
Ectwallet.php
Express.php
Favorites.php
Goods.php
GoodsAppraises.php
GoodsCats.php
GoodsConsult.php
GoodsVirtuals.php
HomeMenus.php
Hooks.php
Informs.php
Invoices.php
LogMoneys.php
LogPayParams.php
LogPays.php
LogSms.php
MessageQueues.php
Messages.php
OrderComplains.php
OrderRefunds.php
Orders.php
Payments.php
Position.php
Settlements.php
ShopCats.php
ShopExtras.php
Shopping.php
Shops.php
SysConfigs.php
SysSummary.php
Systems.php
Table.php
Tags.php
UserAddress.php
UserLevel.php
UserReward.php
UserScores.php
UserTrees.php
UserVouchers.php
Users.php
taglib
validate
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
30 lines
690 B
PHP
Executable File
30 lines
690 B
PHP
Executable File
<?php
|
||
namespace wstmart\common\model;
|
||
/**
|
||
* ============================================================================
|
||
* 系统配置类
|
||
*/
|
||
class SysConfigs extends Base{
|
||
|
||
/**
|
||
* 获取商城配置文件
|
||
*/
|
||
public function loadConfigs(){
|
||
|
||
$rs = $this->field('fieldCode,fieldValue')->order("parentId asc,fieldSort asc")->select();
|
||
$configs = array();
|
||
if(count($rs)>0){
|
||
foreach ($rs as $key=>$v){
|
||
if($v['fieldCode']=="hotSearchs"){
|
||
$fieldValue = str_replace(",",",",$v['fieldValue']);
|
||
$configs[$v['fieldCode']] = explode(",",$fieldValue);
|
||
}else{
|
||
$configs[$v['fieldCode']] = $v['fieldValue'];
|
||
}
|
||
}
|
||
}
|
||
unset($rs);
|
||
return $configs;
|
||
}
|
||
}
|