chore: 将企业微信配置挂载在 config/init API接口上
This commit is contained in:
@@ -120,6 +120,9 @@ class Config extends BaseApi
|
|||||||
$config_model = new ConfigModel();
|
$config_model = new ConfigModel();
|
||||||
$default_img = $config_model->getDefaultImg($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
$default_img = $config_model->getDefaultImg($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
||||||
|
|
||||||
|
// 企业微信配置
|
||||||
|
$wxwork_config = $config_model->getWxworkConfig($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
||||||
|
|
||||||
// 版权信息
|
// 版权信息
|
||||||
$copyright = $config_model->getCopyright($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
$copyright = $config_model->getCopyright($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
||||||
$map_config = $config_model->getMapConfig($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
$map_config = $config_model->getMapConfig($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
||||||
@@ -146,7 +149,8 @@ class Config extends BaseApi
|
|||||||
'servicer' => $servicer_info,
|
'servicer' => $servicer_info,
|
||||||
'shop_info'=>$shop_info,
|
'shop_info'=>$shop_info,
|
||||||
'store_config' => $this->store_data[ 'config' ],
|
'store_config' => $this->store_data[ 'config' ],
|
||||||
'map_config' => $map_config
|
'map_config' => $map_config,
|
||||||
|
'wxwork_config' => $wxwork_config
|
||||||
];
|
];
|
||||||
if (!empty($this->store_data[ 'store_info' ])) {
|
if (!empty($this->store_data[ 'store_info' ])) {
|
||||||
$res[ 'store_info' ] = $this->store_data[ 'store_info' ];
|
$res[ 'store_info' ] = $this->store_data[ 'store_info' ];
|
||||||
|
|||||||
Reference in New Issue
Block a user