Commit e8ee916e authored by clone's avatar clone

1

parent 5c20a9c7
......@@ -75,7 +75,7 @@ class StoreFee extends Basic
if (!$img_arr) {
return $this->response("101", "请上传图片");
}
$if_verify = $this->service_->verifyType($type, $fee_item);
$if_verify = $this->service_->verifyType((int)$type, (int)$fee_item);
if (!$if_verify) {
return $this->response("101", "类型选择错误");
}
......
......@@ -50,7 +50,7 @@ class StoreFeeService
$bank, $card_no, $count_time, $img_arr, $id = 0, $office_id = 0)
{
$arr = $this->applyForFeeBin($id, $type, $fee_item, $total_fee, $agent_id, $store_id, $purpose, $site_id, $card_name,
$bank, $card_no, $count_time, $office_id);
$bank, $card_no, $count_time, $office_id,0);
if ($id) {
$this->applyForFeeModel->updateData($arr, ['id' => $id]);
$feeId = $id;
......@@ -106,6 +106,7 @@ class StoreFeeService
//费用类型 1办公室成本 2上海总部成本 3分部成本 4同联发展基金 5门店单独成本
public function verifyType($type, $fee_item)
{
switch ($type) {
case 1:
if ($fee_item > 0 && $fee_item < 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment