syt_128_2
This commit is contained in:
@@ -124,6 +124,7 @@ class Sytactivity extends Wxapp
|
||||
if ($re_biz_score && $re_biz_score['score']) {
|
||||
$ranking = $this->mdSytBizScore->count(['score >=' => $re_biz_score['score'], 'a_id' => $id]);
|
||||
}
|
||||
$data['bg_color'] = $jsondata['bg_color'] ? $jsondata['bg_color'] : '#000e66';
|
||||
$data['id'] = intval($re['id']);
|
||||
$data['img'] = $re['img'] ? build_qiniu_image_url($re['img']) : '';
|
||||
$data['poster'] = $jsondata['posters'] ? build_qiniu_image_url($jsondata['posters'][0]['url']) : $data['img'];
|
||||
@@ -136,7 +137,8 @@ class Sytactivity extends Wxapp
|
||||
$skey = $this->myencryption->base64url_encode("a_id={$id}&cf_uid={$this->myuid}&biz_id={$this->biz_id}&cf_share={$this->myencryption->random_string(6)}");
|
||||
$myqrcode_url = http_host_com('home') . '/h5/syt/special?skey=' . $skey;
|
||||
$share_url = http_host_com('home') . '/h5/syt/myqrcode/get?url=' . $myqrcode_url;
|
||||
$data['btn'] = ['title' => '马上邀请', 'value' => 1, 'share_url' => $share_url];
|
||||
$btn_color = $jsondata['btn_color'] ? $jsondata['btn_color'] : '#ff7a28';//#aaa9a9(不可用)
|
||||
$data['btn'] = ['title' => '马上邀请', 'value' => 1, 'color' => $btn_color, 'share_url' => $share_url];
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user