|
|
|
@ -294,11 +294,19 @@ class StatementMangementController extends ThinkController
|
|
|
|
|
if ($accounts) {
|
|
|
|
|
|
|
|
|
|
foreach ($accounts as $index => $account) {
|
|
|
|
|
$data['accounts'][] = array_merge(['account'=>$account], ['user_type'=>$user_types[$index]]);
|
|
|
|
|
|
|
|
|
|
if (checkAccount($user_types[$index],$account)==1) {
|
|
|
|
|
$data['accounts'][] = array_merge(['account'=>$account], ['user_type'=>$user_types[$index]]);
|
|
|
|
|
} else {
|
|
|
|
|
return $this->error('账号'.$account.'不存在,请重新输入');
|
|
|
|
|
}
|
|
|
|
|
// $data['accounts'][] = array_merge(['account'=>$account], ['user_type'=>$user_types[$index]]);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$data['accounts'] = [];
|
|
|
|
|
}
|
|
|
|
|
$data['accounts']=a_array_unique($data['accounts']);
|
|
|
|
|
// dump($data['accounts']);die();
|
|
|
|
|
$data['accounts'] = json_encode($data['accounts']);
|
|
|
|
|
if (!is_numeric(I('money'))) {
|
|
|
|
|
return $this->error('请输入正确的金额');
|
|
|
|
|