master
tping 4 years ago
parent ff23d13c54
commit 31ce7b071c

@ -676,6 +676,15 @@
</td>
</tr>
<tr>
<td class="l noticeinfo">安卓IOS数据是否互通</td>
<td class="r">
<select name="data_share">
<option value="0">不互通</option>
<option value="1">互通</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>

@ -892,6 +892,15 @@
</td>
</tr>
<tr>
<td class="l noticeinfo">安卓IOS数据是否互通</td>
<td class="r">
<select name="data_share">
<option value="0"<if condition="$data['data_share'] eq 0"> selected </if>>不互通</option>
<option value="1"<if condition="$data['data_share'] eq 1"> selected </if>>互通</option>
</select>
</td>
</tr>
</tbody>
</table>

@ -376,6 +376,21 @@
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否特殊公司:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="type" >
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="type" checked>
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr class="site-custom-item" style="display: none;">
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广后台域名前缀:</td>
<td class="r" >

@ -378,6 +378,21 @@
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否特殊公司:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="type" <if condition="$data['type'] eq 1">checked</if>> 是
</label>
<label>
<input type="radio" class="inp_radio" value="0" name="type" <if condition="$data['type'] eq 0">checked</if>> 否
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr class="site-custom-item" <?php if($data['is_site_custom'] == 0):?>style="display:none"<?php endif;?>>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广后台域名前缀:</td>
<td class="r" >

@ -392,6 +392,23 @@
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否特殊公司:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="type" <if condition="$data['type'] eq 1">checked
</if>> 是
</label>
<label>
<input type="radio" disabled class="inp_radio" value="0" name="type" <if condition="$data['type'] eq 0">checked
</if>> 否
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<?php if(isset($data['is_site_custom']) && $data['is_site_custom'] == 1):?>
<?php
$domain = C('DOMAIN', null, null);

@ -17,6 +17,9 @@ class PromoteCompanyService
3 => '无',
];
const TYPE_NORMAL = 0; // 默认推广公司
const TYPE_CUSTOM = 1; // 定制推广公司 隐藏某些功能
public function getOutBelongs()
{
return [

@ -2,6 +2,7 @@
namespace Home\Controller;
use Base\Service\PromoteCompanyService;
use Think\Controller;
use Base\Service\PromoteService;
@ -393,8 +394,12 @@ class BaseController extends HomeController
}
}
$closePromoteLowest = [334, 370];
if (in_array($topPromote['company_id'], $closePromoteLowest)) {
// 推广公司
$promoteCompanyService = new PromoteCompanyService();
$promoteCompanyService->getCompanies([$topPromote['company_id']]);
if ($promoteCompanyService['type'] == $promoteCompanyService::TYPE_CUSTOM) {
// $closePromoteLowest = [334, 370];
// if (in_array($topPromote['company_id'], $closePromoteLowest)) {
if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [3, 4])) {
return true;
} else {

Loading…
Cancel
Save