...
|
...
|
@@ -257,17 +257,17 @@ class Cards extends Backend |
|
|
// }
|
|
|
// }
|
|
|
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;
|
|
|
}
|
|
|
// if (strlen($v['mobile']) != 11) {
|
|
|
// $this->error(__('手机号错误' . $v['mobile']));
|
|
|
// die;
|
|
|
// }
|
|
|
// if (strlen($v['CardsNum']) != 18) {
|
|
|
// $this->error(__('身份证号错误' . $v['CardsNum']));
|
|
|
// die;
|
|
|
// }
|
|
|
|
|
|
$insert[$k]['mobile'] = $Api->encrypt($v['mobile']);
|
|
|
$insert[$k]['CardsNum'] = $Api->encrypt(substr($v['CardsNum'], 7));
|
|
|
$insert[$k]['CardsNum'] = $Api->encrypt(substr($v['CardsNum'], 6));
|
|
|
$insert[$k]['remark'] = $Api->encrypt($v['remark']);
|
|
|
$insert[$k]['money'] = $Api->encrypt($v['money']);
|
|
|
// $insert[$k]['money'] = $v['money'];
|
...
|
...
|
|