Merge branch 'hotfix/task-65'

master
ELF 5 years ago
commit ffa4cc2ad8

@ -865,12 +865,7 @@ class PromoteService {
'message' => '账号只能为数字,字母和下划线', 'message' => '账号只能为数字,字母和下划线',
]; ];
} }
if ($mobile == '') { if ($mobile != '') {
return [
'status' => false,
'message' => '请输入手机号',
];
} else {
if (!preg_match("/^1[3456789]{1}\d{9}$/", $mobile)) { if (!preg_match("/^1[3456789]{1}\d{9}$/", $mobile)) {
return [ return [
'status' => false, 'status' => false,
@ -878,12 +873,7 @@ class PromoteService {
]; ];
} }
} }
if ($idcard == '') { if ($idcard != '') {
return [
'status' => false,
'message' => '请输入身份证号',
];
} else {
if (!IdCard::isIdcard($idcard)) { if (!IdCard::isIdcard($idcard)) {
return [ return [
'status' => false, 'status' => false,
@ -891,12 +881,7 @@ class PromoteService {
]; ];
} }
} }
if ($realName == '') { if ($realName != '') {
return [
'status' => false,
'message' => '请输入姓名',
];
} else {
if (mb_strlen($realName) < 2 || mb_strlen($realName) > 4) { if (mb_strlen($realName) < 2 || mb_strlen($realName) > 4) {
return [ return [
'status' => false, 'status' => false,

@ -3456,7 +3456,7 @@ class DownloadController extends BaseController {
->where($map) ->where($map)
->order('tab_spend.id desc') ->order('tab_spend.id desc')
->find()['income']; ->find()['income'];
$csvData1["user_account"] = "合计"; $csvData1["user_account"] = "合计(此数据根据充值状态进行统计)";
$csvData1["pay_order_number"] = "--"; $csvData1["pay_order_number"] = "--";
$csvData1["pay_amount"] = $income; $csvData1["pay_amount"] = $income;
$csvData1["pay_way"] = "--"; $csvData1["pay_way"] = "--";

@ -36,19 +36,19 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l"><span class="req">*</span>姓名:</td> <td class="l">姓名:</td>
<td class="r"> <td class="r">
<input type="text" class="name input-txt txt" name="real_name" id="real_name" maxlength="4" minlength="2" placeholder="请输入姓名"> <input type="text" class="name input-txt txt" name="real_name" id="real_name" maxlength="4" minlength="2" placeholder="请输入姓名">
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l"><span class="req">*</span>身份证:</td> <td class="l">身份证:</td>
<td class="r"> <td class="r">
<input type="text" class="name input-txt txt" name="idcard" id="idcard" placeholder="请输入身份证"> <input type="text" class="name input-txt txt" name="idcard" id="idcard" placeholder="请输入身份证">
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="l"><span class="req">*</span>手机号:</td> <td class="l">手机号:</td>
<td class="r"> <td class="r">
<input type="text" class="name input-txt txt" name="mobile_phone" id="mobile_phone" placeholder="请输入手机号"> <input type="text" class="name input-txt txt" name="mobile_phone" id="mobile_phone" placeholder="请输入手机号">
</td> </td>
@ -147,9 +147,11 @@
if($.trim($('#account').val()).length < 6 || $.trim($('#account').val()).length > 15){ if($.trim($('#account').val()).length < 6 || $.trim($('#account').val()).length > 15){
return json_data = {'status':0,'msg':'子渠道账号长度为6-15位字符'} return json_data = {'status':0,'msg':'子渠道账号长度为6-15位字符'}
} }
if ($.trim($('#real_name').val()) != '') {
if($.trim($('#real_name').val()).length < 2 || $.trim($('#real_name').val()).length > 4){ if($.trim($('#real_name').val()).length < 2 || $.trim($('#real_name').val()).length > 4){
return json_data = {'status':0,'msg':'子渠道姓名长度为2-4位字符'} return json_data = {'status':0,'msg':'子渠道姓名长度为2-4位字符'}
} }
}
if($('#password').val()==""){ if($('#password').val()==""){
return json_data = {'status':0,'msg':'子渠道密码不能为空'} return json_data = {'status':0,'msg':'子渠道密码不能为空'}
} }

@ -224,7 +224,7 @@
</tr> </tr>
</volist> </volist>
<tr> <tr>
<td>合计</td> <td>合计(此数据根据充值状态进行统计)</td>
<td>--</td> <td>--</td>
<td>--</td> <td>--</td>
<td>--</td> <td>--</td>

@ -0,0 +1,2 @@
User-agent: *
Disallow: /
Loading…
Cancel
Save