...
|
...
|
@@ -70,14 +70,10 @@ class Cards extends Backend |
|
|
$row->validateFailException(true)->validate($validate);
|
|
|
}
|
|
|
$Api = new SetCode();
|
|
|
dump($params);
|
|
|
|
|
|
$params['mobile'] = $Api->decrypt($params['mobile']);
|
|
|
$params['CardsNum'] = $Api->decrypt($params['CardsNum']);
|
|
|
$params['remark'] = $Api->decrypt($params['remark']);
|
|
|
$params['money'] = $Api->decrypt($params['money']);
|
|
|
dump($params);
|
|
|
die;
|
|
|
$params['mobile'] = $Api->encrypt($params['mobile']);
|
|
|
$params['CardsNum'] = $Api->encrypt($params['CardsNum']);
|
|
|
$params['remark'] = $Api->encrypt($params['remark']);
|
|
|
$params['money'] = $Api->encrypt($params['money']);
|
|
|
$result = $row->allowField(true)->save($params);
|
|
|
Db::commit();
|
|
|
} catch (ValidateException $e) {
|
...
|
...
|
|