Commit 17ec83b3 authored by hujun's avatar hujun

退款图片上传

parent 3337f130
...@@ -3577,6 +3577,7 @@ class Finance extends Basic ...@@ -3577,6 +3577,7 @@ class Finance extends Basic
* 退款审核 * 退款审核
* *
* @return \think\Response * @return \think\Response
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
...@@ -3643,7 +3644,13 @@ class Finance extends Basic ...@@ -3643,7 +3644,13 @@ class Finance extends Basic
break; break;
case 2 : case 2 :
$save_data['status'] = 2; //已审核 $save_data['status'] = 2; //已审核
$num = $m_refund_log->insertData($save_data); $id = $m_refund_log->insertData($save_data);
if ($id > 0 && is_array($this->params['img_arr'])) {
$m_img = new OImg();
$m_img->addImgAll($id, 4, $this->params['img_arr']);
}
break; break;
} }
......
...@@ -27,7 +27,7 @@ class ORefundLogModel extends BaseModel ...@@ -27,7 +27,7 @@ class ORefundLogModel extends BaseModel
* @return int|string * @return int|string
*/ */
public function insertData($data) { public function insertData($data) {
return $this->db_->insert($data); return $this->db_->insertGetId($data);
} }
/** /**
......
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