Merge branch 'dev' of 47.111.118.107:/srv/git/platform into dev

master
chenxiaojun 5 years ago
commit 5d2f499cfd

@ -662,6 +662,10 @@ class SiteStatAddon extends Addon
$msgc = M('Msg', 'tab_')->where(array('user_id' => UID, 'status' => 2))->count();//站内通知
$daiban['msgc'] = $msgc;
$ver = M('promote','tab_')->where(['ver_status'=>3])->count();
$editver = M('promote','tab_')->where(['ver_status'=>4])->count();
$daiban['ver'] = $ver;
$daiban['editver'] = $editver;
$this->assign('daiban', $daiban);
}

@ -61,7 +61,7 @@ $(document).ready(function () {
</h5>
</div>
<div class="bd wait zwm_wait">
<div class="bd wait zwm_wait" style="overflow-y:scroll;">
<table cellpadding="1" cellspacing="1">
<thead>
<tr>
@ -70,17 +70,19 @@ $(document).ready(function () {
<th style="text-align: center;">待办数量</th>
</tr>
</thead>
<tbody class="athover">
<tbody class="athover">
<tr>
<td>【推广员管理</td>
<td>推广员申请待审核数</td>
<td style="text-align:center;"><a href="{:U('Promote/lists',array('model'=>'promote','status'=>0))}" target="_blank"><span>{$daiban['pcount']}</span></a></td>
<td>【资质审核</td>
<td>推广员身份认证审核</td>
<td><a href="{:U('promote/lists',array('ver_status'=>3))}" target="_blank"><span>{$daiban['ver']}</span></a></td>
</tr>
<tr>
<td>【推广员提现】</td>
<td>推广员提现待审核数</td>
<td><a href="{:U('Query/withdraw',array('status'=>0))}" target="_blank"><span>{$daiban['withc']}</span></a></td>
</tr>
<td>【修改资质审核】</td>
<td>推广员身份修改认证审核</td>
<td><a href="{:U('promote/lists',array('ver_status'=>4))}" target="_blank"><span>{$daiban['editver']}</span></a></td>
</tr>
<tr>
<td>【开发者管理】</td>
<td>开发者申请待审核数</td>
@ -121,6 +123,16 @@ $(document).ready(function () {
<td>推广员包待更新数</td>
<td><a href="{:U('Msg/lists',array('status'=>'未读'))}" target="_blank"><span>{$daiban['msgc']}</span></a></td>
</tr>
<tr>
<td>【推广员管理】</td>
<td>推广员申请待审核数</td>
<td style="text-align:center;"><a href="{:U('Promote/lists',array('model'=>'promote','status'=>0))}" target="_blank"><span>{$daiban['pcount']}</span></a></td>
</tr>
<tr>
<td>【推广员提现】</td>
<td>推广员提现待审核数</td>
<td><a href="{:U('Query/withdraw',array('status'=>0))}" target="_blank"><span>{$daiban['withc']}</span></a></td>
</tr>
</tbody>
</table>

@ -234,7 +234,6 @@ class PromoteRepository {
$resultMap = ['_string' => 'user_id in (' . $inQuery . ')'];
$items = M('user_play_info', 'tab_')->field(['count(*) count', 'promote_id'])->where($resultMap)->group('promote_id')->select();
$records = [];
foreach ($items as $item) {
$promoteId = $item['promote_id'];
@ -372,21 +371,31 @@ class PromoteRepository {
$params['time_column'] = 'pay_time';
$map = $this->getPublicAchievementMap($ids, $params);
$items = M('spend', 'tab_')->field(['sum(pay_amount) amount', 'promote_id', 'pay_way'])->where($map)->group('promote_id, pay_way')->select();
// echo M()->getLastSql();die();
$records = [];
foreach ($items as $item) {
$promoteId = $item['promote_id'];
if (isset($params['basicPromotes'][$promoteId])) {
$promoteId = $params['basicPromotes'][$promoteId];
}
if ($item['pay_way'] == -1) {
$records[$item['promote_id']]['ban_coin'] = $item['amount'];
if (isset($records[$promoteId]) && isset($records[$promoteId]['ban_coin'])) {
$records[$promoteId]['ban_coin'] += $item['amount'];
} else {
$records[$promoteId]['ban_coin'] = $item['amount'];
}
} elseif ($item['pay_way'] == 0) {
$records[$item['promote_id']]['coin'] = $item['amount'];
if (isset($records[$promoteId]) && isset($records[$promoteId]['coin'])) {
$records[$promoteId]['coin'] += $item['amount'];
} else {
$records[$promoteId]['coin'] = $item['amount'];
}
} else {
if (isset($records[$item['promote_id']])) {
$records[$item['promote_id']]['cash'] = isset($records[$item['promote_id']]['cash']) ?
$records[$item['promote_id']]['cash'] + $item['amount'] :
$item['amount'];
if (isset($records[$promoteId]) && isset($records[$promoteId]['cash'])) {
$records[$promoteId]['cash'] += $item['amount'];
} else {
$records[$item['promote_id']]['cash'] = $item['amount'];
$records[$promoteId]['cash'] = $item['amount'];
}
}
}
foreach ($ids as $id) {

@ -1906,6 +1906,11 @@ class QueryController extends BaseController
public function achievement()
{
$time = I('time', date('Y-m-d'));
if(!empty($time)) {
$defaultTime = $time ;
}else {
$defaultTime = date('Y-m-d',time());
}
$sdkVersion = I('sdk_version', 0);
$gameId = I('game_id', 0);
$serverId = I('server_id', 0);
@ -1995,37 +2000,37 @@ class QueryController extends BaseController
$rechargeCountList = $promoteRepository->getRechargeCountByIds($ids, $params);
$rechargeUserCountList = $promoteRepository->getRechargeUserCountByIds($ids, $params);
$rechargeAmountList = $promoteRepository->getRechargeAmountByIds($ids, $params);
if (I('p', 1) == 1) {
$selfParams = $params;
$selfParams['isContainSubs'] = false;
$selfCreateRoleCountList = $promoteRepository->getCreateRoleCountByIds([$promote['id']], $selfParams);
$selfCreateRoleUserCountList = $promoteRepository->getCreateRoleUserCountByIds([$promote['id']], $selfParams);
$selfNewCreateRoleUserCountList = $promoteRepository->getNewCreateRoleUserCountByIds([$promote['id']], $selfParams);
// $selfNewCreateRoleDeviceCountList = $promoteRepository->getNewCreateRoleDeviceCountByIds([$promote['id']], $selfParams);
$selfNewCreateRoleIpCountList = $promoteRepository->getNewCreateRoleIpCountByIds([$promote['id']], $selfParams);
$selfLoginUserCountList = $promoteRepository->getLoginUserCountByIds([$promote['id']], $selfParams);
$selfRechargeCountList = $promoteRepository->getRechargeCountByIds([$promote['id']], $selfParams);
$selfRechargeUserCountList = $promoteRepository->getRechargeUserCountByIds([$promote['id']], $selfParams);
$selfRechargeAmountList = $promoteRepository->getRechargeAmountByIds([$promote['id']], $selfParams);
$selfCreateRoleCountList = $promoteRepository->getCreateRoleCountByIds([$parent['id']], $selfParams);
$selfCreateRoleUserCountList = $promoteRepository->getCreateRoleUserCountByIds([$parent['id']], $selfParams);
$selfNewCreateRoleUserCountList = $promoteRepository->getNewCreateRoleUserCountByIds([$parent['id']], $selfParams);
// $selfNewCreateRoleDeviceCountList = $promoteRepository->getNewCreateRoleDeviceCountByIds([$parent['id']], $selfParams);
$selfNewCreateRoleIpCountList = $promoteRepository->getNewCreateRoleIpCountByIds([$parent['id']], $selfParams);
$selfLoginUserCountList = $promoteRepository->getLoginUserCountByIds([$parent['id']], $selfParams);
$selfRechargeCountList = $promoteRepository->getRechargeCountByIds([$parent['id']], $selfParams);
$selfRechargeUserCountList = $promoteRepository->getRechargeUserCountByIds([$parent['id']], $selfParams);
$selfRechargeAmountList = $promoteRepository->getRechargeAmountByIds([$parent['id']], $selfParams);
$records[] = [
'id' => $parent['id'],
'account' => $parent['account'],
'real_name' => $parent['real_name'],
'level' => $parent['level'],
'create_role_count' => $selfCreateRoleCountList[$promote['id']],
'create_role_user_count' => $selfCreateRoleUserCountList[$promote['id']],
'new_create_role_user_count' => $selfNewCreateRoleUserCountList[$promote['id']],
// 'new_create_role_device_count' => $selfNewCreateRoleDeviceCountList[$promote['id']],
'new_create_role_ip_count' => $selfNewCreateRoleIpCountList[$promote['id']],
'login_user_count' => $selfLoginUserCountList[$promote['id']],
'recharge_count' => $selfRechargeCountList[$promote['id']],
'recharge_user_count' => $selfRechargeUserCountList[$promote['id']],
'recharge_amount' => $selfRechargeAmountList[$promote['id']]['ban_coin'] + $rechargeAmountList[$promote['id']]['coin'] + $rechargeAmountList[$promote['id']]['cash'],
'recharge_by_ban_coin' => $selfRechargeAmountList[$promote['id']]['ban_coin'],
'recharge_by_coin' => $selfRechargeAmountList[$promote['id']]['coin'],
'recharge_by_cash' => $selfRechargeAmountList[$promote['id']]['cash'],
'create_role_count' => $selfCreateRoleCountList[$parent['id']],
'create_role_user_count' => $selfCreateRoleUserCountList[$parent['id']],
'new_create_role_user_count' => $selfNewCreateRoleUserCountList[$parent['id']],
// 'new_create_role_device_count' => $selfNewCreateRoleDeviceCountList[$parent['id']],
'new_create_role_ip_count' => $selfNewCreateRoleIpCountList[$parent['id']],
'login_user_count' => $selfLoginUserCountList[$parent['id']],
'recharge_count' => $selfRechargeCountList[$parent['id']],
'recharge_user_count' => $selfRechargeUserCountList[$parent['id']],
'recharge_amount' => $selfRechargeAmountList[$parent['id']]['ban_coin'] + $rechargeAmountList[$parent['id']]['coin'] + $rechargeAmountList[$parent['id']]['cash'],
'recharge_by_ban_coin' => $selfRechargeAmountList[$parent['id']]['ban_coin'],
'recharge_by_coin' => $selfRechargeAmountList[$parent['id']]['coin'],
'recharge_by_cash' => $selfRechargeAmountList[$parent['id']]['cash'],
'current_display' => $currentDisplay,
];
}
@ -2065,6 +2070,7 @@ class QueryController extends BaseController
$this->assign('parentid', $parentId);
$this->assign('count', $count);
$this->assign('timeout', $timeout);
$this->assign('time',$defaultTime);
$this->display();
}

@ -319,28 +319,8 @@ class SafeController extends BaseController{
$addressArr = explode(',', json_decode($address)[0]);
$promoteInfo['addressdata'] = $addressArr;
$this->assign('addr',json_decode($address)[1]);
}else {
$this->assign('addr','未填写地址');
}
$promoteInfo['address'] = json_decode($address);
if(empty($promoteInfo['bank_card'])) {
$promoteInfo['bank_card'] = " ";
}
if(empty($promoteInfo['email'])) {
$promoteInfo['email'] = " ";
}
if(empty($promoteInfo['real_name'])) {
$promoteInfo['real_name'] = " ";
}
if(empty($promoteInfo['mobile_phone'])) {
$promoteInfo['mobile_phone'] = " ";
}
if(empty($promoteInfo['bank_name'])) {
$promoteInfo['bank_name'] = " ";
}
if(empty($promoteInfo['idcard'])) {
$promoteInfo['idcard'] = " ";
}
$this->assign("ver_status",$promoteInfo['ver_status']);
$this->assign('promoteinfo', $promoteInfo);
@ -354,12 +334,13 @@ 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)) {
/* if(!empty($anothpic)) {
$idcarpicArr = explode(',', $anothpic);
foreach ($idcarpicArr as $key => $value) {
$promoteInfo['valuedata'][$key] = $value;
}
}
} */
$promoteInfo = "";
$address = json_decode($rs['address'],false)[1];
$this->assign('addr',$address);
$this->assign('ver_status',$rs['ver_status']);
@ -377,6 +358,42 @@ class SafeController extends BaseController{
$account_type = $_REQUEST["account_type"];
$bank = $_REQUEST["bank"];
$agreementpic = $_REQUEST["agreementpic"];
if(empty($tel)) {
$this->error("手机号码不能为空");
return false;
}
$pattern = "/^1[3|5|7|8]\\d{9}$/i";
if(!preg_match($pattern, $tel)) {
$this->error("手机号码格式不合法");
return false;
}
if(empty($address1)) {
$this->error("地址不能为空");
return false;
}
if(empty($email)) {
$this->error("邮箱不能为空");
return false;
}
$patternemail = "/^([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)$/i";
if (!preg_match($patternemail, $email)) {
$this->error('邮箱地址错误');
return false;
}
if(empty($bank)) {
$this->error("卡号不能为空");
return false;
}
$bank_card_pattern = "/^\d{10,19}$/u";
if (!preg_match($bank_card_pattern, $bank)) {
$this->error('卡号格式错误');
return false;
}
if(empty($agreementpic)) {
$this->error("补充协议不能为空");
return false;
}
$Res = M("promote","tab_")->field('address')->where(['id'=>$id])->find();
$address = json_decode($Res['address'],false);
$address[1] = $address1;

@ -61,14 +61,14 @@
</select>
</div>
<div class="form-group normal_space fr">
<input type="text" class="txt range-date" name="time" placeholder="起止时间" value="{:I('time', date('Y-m-d'))}" >
<input type="text" class="txt range-date" name="time" placeholder="起止时间" value="{$time}" >
</div>
<div class="form-group">
<input type="submit" class="submit normal_space" value="查询">
</div>
<?php if ($prevParentId > 0):?>
<div class="form-group">
<a class="submit normal_space" href="{:U('Query/achievement', ['row'=>I('get.row'), 'parent_id' => $prevParentId])}" style="line-height: 36px; display: inline-block; text-align: center; background: #E5E5E5; color: #2bd8ed; cursor: pointer;">返回上级</a>
<a class="submit normal_space" href="{:U('Query/achievement', ['row'=>I('get.row'), 'parent_id' => $prevParentId,'time'=>$time])}" style="line-height: 36px; display: inline-block; text-align: center; background: #E5E5E5; color: #2bd8ed; cursor: pointer;">返回上级</a>
</div>
<?php endif;?>
</form>

@ -212,7 +212,7 @@
+' <tr><td class="l">开户银行:</td><td class="r"><input type="text" class="input txt" name="bank" id="confirm_password" style="width:430px" placeholder="" value="'+bank_card+'">'
+'<span id="confirm_password_tip"></span></td></tr>'
+' <tr> <td class="l" style="margin-top:20px">补充协议:</td><td class="r">'
+' <input type="hidden" name="agreementpic" id="" value="'+anothpic+'"/>'
+' <input type="hidden" name="agreementpic" id="" value=""/>'
+'<div id="uploader-demo" > <div id="agreementpic"><div class="webuploader-pick" style="line-height:30px" onclick="">点击上传</div></div>'
+'<div id="agreementpicList" class="uploader-list" style="display: flex;"></div></td></tr>'
+'<tr><td class="l" colspan="5"><div style="margin-top:40px;" id="tab"><span style="padding-left:20px;color:#26c7dbd4" >*须补充修改协议(联系平台签署)</span></div> </td></tr>'

@ -84,23 +84,21 @@
<tr>
<td class="l"><span style="color:red">*</span>真实姓名:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<input type="text" disabled ="disabled" class="input txt" name="username" id="password" style="width:430px" placeholder="{$promoteinfo['real_name']}" value="{$promoteinfo['real_name']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="username" id="password" style="width:430px" placeholder="{$promoteinfo['real_name']}" value="{$promoteinfo['real_name']}">
<?php }?>
<if condition="$ver_status eq 1">
<input type="text" disabled ="disabled" class="input txt" name="username" id="password" style="width:430px" value="{$promoteinfo['real_name']}">
<else />
<input type="text" class="input txt" name="username" id="password" style="width:430px" value="{$promoteinfo['real_name']}">
</if>
<span id="password_tip"></span></td>
</tr>
<tr>
<td class="l"><span style="color:red">*</span>身份证号码:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<input type="text" disabled ="disabled" class="input txt" name="id_card" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['idcard']}" value="{$promoteinfo['idcard']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="id_card" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['idcard']}" value="{$promoteinfo['idcard']}">
<?php }?>
<if condition="$ver_status eq 1">
<input type="text" disabled ="disabled" class="input txt" name="id_card" id="confirm_password" style="width:430px" value="{$promoteinfo['idcard']}">
<else />
<input type="text" class="input txt" name="id_card" id="confirm_password" style="width:430px" value="{$promoteinfo['idcard']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
@ -200,12 +198,11 @@
<tr style="margin-top:50px">
<td class="l"><span style="color:red">*</span>电话:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<input type="text" disabled ="disabled" class="input txt" name="tel" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['mobile_phone']}" value="{$promoteinfo['mobile_phone']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="tel" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['mobile_phone']}" value="{$promoteinfo['mobile_phone']}">
<?php }?>
<if condition="$ver_status eq 1">
<input type="text" disabled ="disabled" class="input txt" name="tel" id="confirm_password" style="width:430px" value="{$promoteinfo['mobile_phone']}">
<else />
<input type="text" class="input txt" name="tel" id="confirm_password" style="width:430px" value="{$promoteinfo['mobile_phone']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
@ -218,12 +215,11 @@
<select id="s_province" name="s_province" class="areaselect1 select_gallery" style="width: 90px;"></select>  
<select id="s_city" name="s_city" class="areaselect2 select_gallery" style="width: 120px;"></select>  
<select id="s_county" name="s_county" class="areaselect3 select_gallery" style="width: 90px;"></select>
<?php if($ver_status == 1 ){?>
<input type="text" class="input txt" disabled ="disabled" name="address" id="confirm_password" style="width:430px;margin-left:20px" placeholder="{$addr}" value="{$addr}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="address" id="confirm_password" style="width:430px;margin-left:20px" placeholder="{$addr}" value='{$addr}'>
<?php }?>
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="address" id="confirm_password" style="width:430px;margin-left:20px" value="{$addr}">
<else />
<input type="text" class="input txt" name="address" id="confirm_password" style="width:430px;margin-left:20px" value='{$addr}'>
</if>
<script type="text/javascript" >
var pro="{:$promoteinfo['addressdata']['0']}";
@ -251,12 +247,11 @@
<tr>
<td class="l"><span style="color:red">*</span>邮箱:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<input type="text" class="input txt" disabled ="disabled" name="email" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['email']}" value="{$promoteinfo['email']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="email" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['email']}" value="{$promoteinfo['email']}">
<?php }?>
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="email" id="confirm_password" style="width:430px" value="{$promoteinfo['email']}">
<else />
<input type="text" class="input txt" name="email" id="confirm_password" style="width:430px" value="{$promoteinfo['email']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
@ -264,23 +259,21 @@
<tr>
<td class="l"><span style="color:red">*</span>账户类型{$promoteinfo['complanystatus']}</td>
<td class="r">
<?php if($promoteinfo['complanystatus'] == 1) {?>
<if condition="$ver_status eq 1">
<input type="radio" class="input txt" name="account_type" value="公司" checked>公司<input type="radio" class="input txt" style="margin-left:20px" name="account_type" value="个人" >个人
<?php }?>
<?php if($promoteinfo['complanystatus'] == 0) {?>
<else />
<input type="radio" class="input txt" name="account_type" value="公司" >公司<input type="radio" class="input txt" style="margin-left:20px" name="account_type" value="个人" checked>个人
<?php }?>
</if>
<span id="confirm_password_tip"></span></td>
</tr>
<tr>
<td class="l"><span style="color:red">*</span>开户银行:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="bank_name" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['bank_name']}" value="{$promoteinfo['bank_name']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="bank_name" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['bank_name']}" value="{$promoteinfo['bank_name']}">
<?php }?>
<else />
<input type="text" class="input txt" name="bank_name" id="confirm_password" style="width:430px" value="{$promoteinfo['bank_name']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
@ -288,12 +281,11 @@
<tr>
<td class="l"><span style="color:red">*</span>银行账户名:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="bank_account" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['bank_account']}" value="{$promoteinfo['bank_account']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="bank_account" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['bank_account']}" value="{$promoteinfo['bank_account']}">
<?php }?>
<else />
<input type="text" class="input txt" name="bank_account" id="confirm_password" style="width:430px" value="{$promoteinfo['bank_account']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
@ -301,12 +293,11 @@
<tr>
<td class="l"><span style="color:red">*</span>银行账号:</td>
<td class="r">
<?php if($ver_status == 1 ){?>
<input type="text" class="input txt" disabled ="disabled" name="bank_card" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['bank_card']}" value="{$promoteinfo['bank_card']}">
<?php }?>
<?php if($ver_status != 1) {?>
<input type="text" class="input txt" name="bank_card" id="confirm_password" style="width:430px" placeholder="{$promoteinfo['bank_card']}" value="{$promoteinfo['bank_card']}">
<?php }?>
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="bank_card" id="confirm_password" style="width:430px" value="{$promoteinfo['bank_card']}">
<else />
<input type="text" class="input txt" name="bank_card" id="confirm_password" style="width:430px" value="{$promoteinfo['bank_card']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>

@ -57,6 +57,7 @@ class UcenterMemberModel extends Model{
array('reg_ip', 'get_client_ip', self::MODEL_INSERT, 'function', 1),
array('update_time', NOW_TIME),
array('status', 'getStatus', self::MODEL_BOTH, 'callback'),
array('openid_sign', '0', self::MODEL_INSERT)
);
/**
@ -109,7 +110,6 @@ class UcenterMemberModel extends Model{
'second_pwd' => $second_pwd,
'email' => $email,
'mobile' => $mobile,
'openid_sign'=>''
);
//验证手机
@ -119,9 +119,10 @@ class UcenterMemberModel extends Model{
$data['username'] = $username;
$data['email'] = $email;
try {
$status = M('UcenterMember', 'sys_')->data($data)->add();
$status = M('UcenterMember', 'sys_')->add($data);
} catch (\Throwable $th) {
$status = false;
dump($th);
}
$uid = 0;
if ($status) {

@ -433,3 +433,10 @@ ALTER TABLE `tab_spend` ADD INDEX `search`(`promote_id`, `game_id`, `server_id`,
ALTER TABLE `tab_pay_info`
MODIFY COLUMN `order_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '平台订单ID' AFTER `game_id`,
ADD COLUMN `extend` varchar(255) NOT NULL DEFAULT '' COMMENT 'cp订单ID' AFTER `game_id`;
--广
ALTER TABLE `tab_promote`
CHANGE COLUMN `ver_status` `ver_status` INT(11) NULL DEFAULT '0' COMMENT '资质认证审核状态(1是审核成功2审核失败3未审核,4修改认证)' AFTER `child_game_permission`,
ADD COLUMN `anothpic` CHAR(254) NULL DEFAULT NULL AFTER `account_type`;
Loading…
Cancel
Save