master
tping 4 years ago
parent ff23d13c54
commit 31ce7b071c

@ -676,6 +676,15 @@
</td> </td>
</tr> </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> </tbody>
</table> </table>
</div> </div>

@ -892,6 +892,15 @@
</td> </td>
</tr> </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> </tbody>
</table> </table>

@ -376,6 +376,21 @@
</td> </td>
</tr> </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;"> <tr class="site-custom-item" style="display: none;">
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广后台域名前缀:</td> <td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广后台域名前缀:</td>
<td class="r" > <td class="r" >

@ -378,6 +378,21 @@
</td> </td>
</tr> </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;?>> <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="l"><i class="mustmark" style="margin-left:-7px">*</i>推广后台域名前缀:</td>
<td class="r" > <td class="r" >

@ -392,6 +392,23 @@
</td> </td>
</tr> </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 if(isset($data['is_site_custom']) && $data['is_site_custom'] == 1):?>
<?php <?php
$domain = C('DOMAIN', null, null); $domain = C('DOMAIN', null, null);

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

@ -2,6 +2,7 @@
namespace Home\Controller; namespace Home\Controller;
use Base\Service\PromoteCompanyService;
use Think\Controller; use Think\Controller;
use Base\Service\PromoteService; 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])) { if ($topPromote['can_view_recharge'] == 1 && !in_array($promote['level'], [3, 4])) {
return true; return true;
} else { } else {

Loading…
Cancel
Save