|
@@ -513,6 +513,8 @@ class merchantControl extends SystemControl
|
|
|
Tpl::output('amount', $evidence_info['amount']);
|
|
|
Tpl::output('available_predeposit', $evidence_info['available_predeposit']);
|
|
|
}
|
|
|
+ global $config;
|
|
|
+ Tpl::output('receive_bank', $config['receive_bank']);
|
|
|
Tpl::showpage('recharge.add');
|
|
|
}
|
|
|
}
|
|
@@ -527,7 +529,8 @@ class merchantControl extends SystemControl
|
|
|
["input" => $_POST["mch_id"], "require" => "true", "message" => '机构号不能为空'],
|
|
|
["input" => $_POST["bank_username"], "require" => "true", "message" => '开户人姓名不能为空'],
|
|
|
["input" => $_POST["bank_name"], "require" => "true", "message" => '开户银行不能为空'],
|
|
|
- ["input" => $_POST["pointsnum"], "require" => "true", "message" => '预存金额不能为空']
|
|
|
+ ["input" => $_POST["pointsnum"], "require" => "true", "message" => '预存金额不能为空'],
|
|
|
+ ["input" => $_POST["receive_bank"], "require" => "true", "message" => '请选择收款银行']
|
|
|
];
|
|
|
} elseif ($type == 'edit') {
|
|
|
$obj_validate->validateparam = [
|
|
@@ -595,6 +598,8 @@ class merchantControl extends SystemControl
|
|
|
showMessage('操作失败', 'index.php?act=refill_evidence&op=index');
|
|
|
}
|
|
|
} else {
|
|
|
+ global $config;
|
|
|
+ Tpl::output('receive_bank', $config['receive_bank']);
|
|
|
$page = "recharge.manual.{$type}";
|
|
|
Tpl::showpage($page);
|
|
|
}
|
|
@@ -619,6 +624,7 @@ class merchantControl extends SystemControl
|
|
|
$input['admin_name'] = $admininfo['name'];
|
|
|
$input['admin_id'] = $admininfo['id'];
|
|
|
$input['add_type'] = $params['add_type'];
|
|
|
+ $input['receive_bank'] = $params['receive_bank'];
|
|
|
if($params['type'] == 'add') {
|
|
|
$input['is_bank'] = 1;
|
|
|
}
|
|
@@ -632,7 +638,8 @@ class merchantControl extends SystemControl
|
|
|
$obj_validate = new Validator();
|
|
|
$obj_validate->validateparam = [
|
|
|
["input" => $_POST["apply_id"], "require" => "true", "message" => Language::get('admin_points_member_error_again')],
|
|
|
- ["input" => $_POST["pointsnum"], "require" => "true", 'validator' => 'Compare', 'operator' => ' >= ', 'to' => 1, "message" => Language::get('admin_points_points_min_error')]
|
|
|
+ ["input" => $_POST["pointsnum"], "require" => "true", 'validator' => 'Compare', 'operator' => ' >= ', 'to' => 1, "message" => Language::get('admin_points_points_min_error')],
|
|
|
+ ["input" => $_POST["receive_bank"], "require" => "true", "message" => '请选择收款银行']
|
|
|
];
|
|
|
$error = $obj_validate->validate();
|
|
|
if ($error != '') {
|
|
@@ -705,7 +712,11 @@ class merchantControl extends SystemControl
|
|
|
$after_available = ncPriceFormat($available_predeposit + $evidence_info['amount']);
|
|
|
$model_merchant->editRefillEvidence(
|
|
|
['apply_id' => $apply_id],
|
|
|
- ['is_operation' => 2, 'after_available' => $after_available, 'admin_id' => $admininfo['id'], 'admin_name' => $admininfo['name']]
|
|
|
+ [
|
|
|
+ 'is_operation' => 2, 'after_available' => $after_available,
|
|
|
+ 'admin_id' => $admininfo['id'], 'admin_name' => $admininfo['name'],
|
|
|
+ 'receive_bank' => $_POST['receive_bank']
|
|
|
+ ]
|
|
|
);
|
|
|
$trans->commit();
|
|
|
$this->log($log_msg, 1);
|