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