Commit 29000ca7 authored by clone's avatar clone

1

parent d697f1a2
......@@ -61,6 +61,7 @@ class StoreFee extends Basic
if (true !== $checkResult) {
return $this->response("101", $checkResult);
}
$type = $params["type"];
$fee_item = $params["fee_item"];
$total_fee = $params["total_fee"];
......@@ -73,6 +74,9 @@ class StoreFee extends Basic
$bank = $params["bank"];
$card_no = $params["card_no"];
$count_time = $params["count_time"];
if (($type == 2 || $type == 3) && !$office_id){
return $this->response("101", "办公室必传");
}
$img_arr = isset($params["img_arr"]) ? json_decode($params["img_arr"], true) : "";
if (!$img_arr) {
return $this->response("101", "请上传图片");
......
......@@ -45,7 +45,7 @@ class StoreFeeValidate extends Validate
];
protected $scene = [
'addApplyFor' => ['type', 'fee_item', 'total_fee', 'agent_id', 'store_id','office_id', 'assume_fee', 'site_id'],
'addApplyFor' => ['type', 'fee_item', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id'],
'pcAddApplyFor' => ['type', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id'],
'pcEditApplyFor' => ['id', 'type', 'total_fee', 'agent_id', 'store_id', 'assume_fee', 'site_id']
];
......
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