InfoController.class.php
994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Created by PhpStorm.
* User: liyifei2012it
* Date: 16/9/27
* Time: 20:11
*/
namespace Apicp\Controller\Invite;
use Common\Common\Cache;
use Common\Service\InviteSettingService;
class InfoController extends AbstractController
{
/**
* 【通讯录】获取邀请函内容
* @author liyifei
*/
public function Index_post()
{
$settingServ = new InviteSettingService();
$data = $settingServ->get_by_conds([]);
if (empty($data)) {
E('_ERR_DATA_IS_NULL');
return false;
}
// 企业信息
$ep = Cache::instance()->get(
'Common.EnterpriseDetail',
'',
['expire' => cfg('ENTERPRISE_DETAIL_CACHE_EXPIRE')]
);
$this->_result = [
'qy_logo' => $ep['corpSquareLogo'],
'qy_name' => $ep['epName'],
'content' => $data['content'],
'share_content' => $data['share_content'],
];
}
}