diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 08cc2bd37..a94784d64 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -1223,6 +1223,10 @@ class PromoteController extends ThinkController $map['pb.can_view_recharge'] = I('can_view_recharge'); } + if (!is_null(I('company_type', null))) { + $map['pb.company_type'] = I('company_type'); + } + if (!is_null(I('company_id', null))) { $map['p.company_id'] = I('company_id'); } @@ -1265,7 +1269,7 @@ class PromoteController extends ThinkController $this->display(); } - public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null) + public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null, $company_type = null) { if (IS_POST) { if (empty($promote_id)) { @@ -1276,6 +1280,7 @@ class PromoteController extends ThinkController 'company_belong' => $company_belong, 'company_relation' => $company_relation, 'can_view_recharge' => $can_view_recharge, + 'company_type' => $company_type, 'verify_status' => 0, 'remark' => $remark, 'applicant_id' => getAdmin(), @@ -1302,7 +1307,7 @@ class PromoteController extends ThinkController } } - public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null) + public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null, $company_type = null) { if (IS_POST) { if (empty($promote_id)) { @@ -1313,6 +1318,7 @@ class PromoteController extends ThinkController 'company_belong' => $company_belong, 'company_relation' => $company_relation, 'can_view_recharge' => $can_view_recharge, + 'company_type' => $company_type, 'verify_status' => 0, 'remark' => $remark, 'applicant_id' => getAdmin(), diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 056c6c1ec..37968f32b 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -28,6 +28,13 @@ class ToolController extends ThinkController { $map_['name']=array("in",'wei_xin,wei_xin_app,weixin'); M('tool','tab_')->where($map_)->setField('status','0'); } + if (!is_numeric($config['channel_rate'])) { + $this->error('请输入正确的渠道费率'); + } + if ($config['channel_rate'] > 100) { + $this->error('渠道费率最大值为100%'); + } + $config['channel_rate'] = round($config['channel_rate'], 2); $flag = M('Tool','tab_')->where($map)->setField($data); if($flag !== false){ $config['status']=$_POST['status']; diff --git a/Application/Admin/View/Promote/belong.html b/Application/Admin/View/Promote/belong.html index 20a550f41..9678510a2 100644 --- a/Application/Admin/View/Promote/belong.html +++ b/Application/Admin/View/Promote/belong.html @@ -81,6 +81,13 @@ +
+ +
无 + - - - - - - - 工会关系: - - - + + 工会关系: + + + + + + + + + + + + 工会类型: + + + + + + + + + 充值信息查看权限: diff --git a/Application/Admin/View/Promote/belong_edit.html b/Application/Admin/View/Promote/belong_edit.html index f39d3750a..ee3b035c9 100644 --- a/Application/Admin/View/Promote/belong_edit.html +++ b/Application/Admin/View/Promote/belong_edit.html @@ -64,7 +64,12 @@ 工会归属: - + + + @@ -84,6 +94,11 @@ 工会关系: +