抽奖_去除机构默认头像
This commit is contained in:
@@ -144,13 +144,13 @@ class Draw extends CI_Controller
|
||||
$list = $result = [];
|
||||
if ($count) {//判断抽奖名单
|
||||
$defaultHead = 'https://qs.haodian.cn/web/images/project/H5-ShiYu/default-head.png';
|
||||
if ($re['organizationId']) {//修改默认头像为机构logo
|
||||
$this->load->model('market/Market_sylive_organization_model', 'mdSyliveOrganization');
|
||||
$reOrg = $this->mdSyliveOrganization->get(['organizationId' => $re['organizationId']]);
|
||||
if ($reOrg['logo']) {
|
||||
$defaultHead = build_qiniu_image_url($reOrg['logo']);
|
||||
}
|
||||
}
|
||||
// if ($re['organizationId']) {//修改默认头像为机构logo
|
||||
// $this->load->model('market/Market_sylive_organization_model', 'mdSyliveOrganization');
|
||||
// $reOrg = $this->mdSyliveOrganization->get(['organizationId' => $re['organizationId']]);
|
||||
// if ($reOrg['logo']) {
|
||||
// $defaultHead = build_qiniu_image_url($reOrg['logo']);
|
||||
// }
|
||||
// }
|
||||
//随机数据
|
||||
$res = $this->db->query($sqlOrder)->result_array();
|
||||
if ($res) {
|
||||
@@ -261,4 +261,4 @@ class Draw extends CI_Controller
|
||||
die(json_encode($data, JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user