|
@@ -4,6 +4,7 @@ namespace app\api\controller;
|
|
|
|
|
|
use app\admin\model\Company;
|
|
|
use app\common\model\Ads;
|
|
|
+use app\common\model\Config;
|
|
|
use app\common\model\Menu;
|
|
|
use app\common\controller\Api;
|
|
|
use app\common\model\User;
|
|
@@ -40,8 +41,11 @@ class Index extends Api
|
|
|
{
|
|
|
|
|
|
$rs = Company::where('id',$this->cid)->field('company_name,company_tel,sys_appid,wechat_appid,wechat_share_image,wechat_qrcode_image,routine_appid,share_title,share_info,wx_open_appid')->find();
|
|
|
+
|
|
|
if($rs) {
|
|
|
- $this->success('获取成功', $rs->toArray());
|
|
|
+ $rs = $rs->toArray();
|
|
|
+ $rs['all_ash'] = Config::where('name','all_ash')->value('value');
|
|
|
+ $this->success('获取成功', $rs);
|
|
|
}
|
|
|
}
|
|
|
public function wxconfig()
|