...
|
...
|
@@ -184,7 +184,18 @@ class Cards extends Backend |
|
|
$this->error('请先设置积分比例');
|
|
|
}
|
|
|
$Api = new SetCode();
|
|
|
// foreach ($insert as $k => $v) {
|
|
|
// if (strlen($v['mobile']) != 11) {
|
|
|
// $this->error('手机号错误' . $v['mobile']);
|
|
|
// die;
|
|
|
// }
|
|
|
// if (strlen($v['CardsNum']) != 18) {
|
|
|
// $this->error('身份证号错误' . $v['CardsNum']);
|
|
|
// die;
|
|
|
// }
|
|
|
// }
|
|
|
foreach ($insert as $k => $v) {
|
|
|
// $v['CardsNum'] = substr($v['CardsNum'], 1);
|
|
|
if (strlen($v['mobile']) != 11) {
|
|
|
$this->error('手机号错误' . $v['mobile']);
|
|
|
die;
|
...
|
...
|
@@ -193,9 +204,7 @@ class Cards extends Backend |
|
|
$this->error('身份证号错误' . $v['CardsNum']);
|
|
|
die;
|
|
|
}
|
|
|
}
|
|
|
foreach ($insert as $k => $v) {
|
|
|
// $v['CardsNum'] = substr($v['CardsNum'], 1);
|
|
|
|
|
|
$insert[$k]['mobile'] = $Api->encrypt($v['mobile']);
|
|
|
$insert[$k]['CardsNum'] = $Api->encrypt(substr($v['CardsNum'], 7));
|
|
|
$insert[$k]['remark'] = $Api->encrypt($v['remark']);
|
...
|
...
|
|