Commit 739f83cd authored by hujun's avatar hujun

恢复方法

parent 87d50ce8
......@@ -620,4 +620,30 @@ class StoreFeeService
return round($total * 100) * 0.01;
}
/**
* 新增费用审核
*
* @param $data
* @param $img_id
* @return int|string
*/
public function saveImageData($data, $img_id)
{
$num = 0;
foreach($data as $k => $v) {
if (empty($v)) {
continue;
}
$save_data[$k]['img_id'] = $img_id;
$save_data[$k]['img_name'] = $v;
$save_data[$k]['img_type'] = 1;
}
if (isset($save_data)) {
$num = $this->imgModel->insertDataAll($save_data);
}
return $num;
}
}
\ No newline at end of file
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