Commit 19ddd6f1 authored by hujun's avatar hujun

新增报销申请图片

parent 4cfe4cc0
......@@ -133,4 +133,23 @@ class StoreFee extends Basic
return $this->response($code, $msg);
}
public function addFeeImage()
{
$code = 101;
$img_arr = json_decode($this->params["img_arr"], true);
if (!is_array($img_arr)) {
return $this->response($code, '参数错误');
}
$num = $this->service_->saveImageData($img_arr, $this->params['id']);
if ($num > 0) {
$code = 200;
$msg = '上传成功';
} else {
$msg = '上传失败';
}
return $this->response($code, $msg);
}
}
\ 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