master
chenxiaojun 5 years ago
commit 5a75ea406a

@ -5977,6 +5977,9 @@ class ExportController extends Controller
if (I('status')) {
$map['tab_promote.status'] = I('status');
}
if (strlen(I('company_belong'))) {
$map['company_belong'] = I("company_belong");
}
//为数据权限添加
setPowerPromoteIds($map, 'tab_promote.id');

@ -96,6 +96,9 @@ class PromoteController extends ThinkController
if (I("promote_level")) {
$map['level'] = I("promote_level");
}
if (strlen(I('company_belong'))) {
$map['company_belong'] = I("company_belong");
}
$this->m_title = '推广员列表';
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/lists/type/1','status'=>1])->find());
if (isset($_REQUEST['row'])) {
@ -221,6 +224,10 @@ class PromoteController extends ThinkController
if ($this->accountExist($account)) {
$this->error('该账号已存在');
}
$res = M('promote', 'tab_')->where(['mobile_phone' => $mobile_phone])->field('id')->find();
if ($res) {
$this->error('该手机号已存在');
}
$company_belong = $_REQUEST['company_belong'] ?? 0;
$company_relation = $_REQUEST['company_relation'] ?? 0;
$data = array(

@ -48,7 +48,6 @@ class StatementMangementController extends ThinkController
// var_dump($data);die();
foreach ($data as $key => $value) {
$data[$key]['order'] = json_decode($value['second_party_info'],true)['order_type'];
var_dump($data[$key]['order']);
}
$sumData = M("statement","tab_")

@ -135,6 +135,14 @@
<option value="0">未关联</option>
</select>
</div>
<div class="input-list input-list-channelstatus">
<select name="company_belong">
<option value="">内外团</option>
<option value="0">内团</option>
<option value="1">外团</option>
</select>
</div>
<else/>
<div class="input-list input-list-channelstatus">
<select name="url_type">
@ -157,6 +165,7 @@
<option value="0">未关联</option>
</select>
</div>
</empty>
<input type="hidden" name="" value="" class="sortBy">
<input type="hidden" name="type" value="{$_GET['type']}">

@ -206,6 +206,11 @@ class SafeController extends BaseController{
$this->error("手机号码格式不合法");
return false;
}
$telInfo = M('promote','tab_')->field('id')->where(['mobile_phone'=>$tel])->find();
if(!empty($telInfo)) {
$this->error("手机号码已存在");
return false;
}
if(empty($id_card)) {
$this->error("身份证号码不能为空");
return false;
@ -343,12 +348,6 @@ class SafeController extends BaseController{
$id = get_pid();
$rs = M("promote","tab_")->field('anothpic,ver_status,real_name,bank_card,mobile_phone,email,address,idcard')->where(['id'=>$id])->find();
$anothpic = $rs['anothpic'];
/* if(!empty($anothpic)) {
$idcarpicArr = explode(',', $anothpic);
foreach ($idcarpicArr as $key => $value) {
$promoteInfo['valuedata'][$key] = $value;
}
} */
$promoteInfo = "";
$address = json_decode($rs['address'],false)[1];
$realname = mb_strlen($rs['real_name'],'utf-8') == 2 ? mb_substr($rs['real_name'],0,1,'utf-8').'*':mb_substr($rs['real_name'],0,1,'utf-8').'**';
@ -379,6 +378,11 @@ class SafeController extends BaseController{
$this->error("手机号码格式不合法");
return false;
}
$telInfo = M('promote','tab_')->field('id')->where(['mobile_phone'=>$tel])->find();
if(!empty($telInfo)) {
$this->error("手机号码已存在");
return false;
}
if(empty($address1)) {
$this->error("地址不能为空");

@ -1111,3 +1111,7 @@ ALTER TABLE `tab_promote_game_ratio`
ADD COLUMN `relation_game_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联游戏id' AFTER `game_id`;
ALTER TABLE `tab_promote_game_ratio_log`
ADD COLUMN `relation_game_id` int(11) NOT NULL DEFAULT 0 COMMENT '关联游戏id' AFTER `game_id`;
ALTER TABLE `tab_spend`
MODIFY COLUMN `selle_status` int(11) NOT NULL DEFAULT 0 COMMENT '渠道结算 0未结算1 结算',
MODIFY COLUMN `selle_ratio` double(5, 2) DEFAULT 0.00 COMMENT '渠道分成比例';
Loading…
Cancel
Save