Commit 2e707a3f authored by zw's avatar zw

时间轴

parent 5e5cc096
...@@ -172,7 +172,6 @@ class PayLogService ...@@ -172,7 +172,6 @@ class PayLogService
$arr = $this->refundBin($agent_id, $agent_name, $report_id, $order_id, $order_no, $refund_money, $name, $arr = $this->refundBin($agent_id, $agent_name, $report_id, $order_id, $order_no, $refund_money, $name,
$phone, $bank, $card_no, $receipt_number, $type, $refund_cause, $pay_log_id,$refund_way, $remark,$refund_id); $phone, $bank, $card_no, $receipt_number, $type, $refund_cause, $pay_log_id,$refund_way, $remark,$refund_id);
if ($refund_id <= 0) { if ($refund_id <= 0) {
$insert_id = $this->oRefundModel->addRefund($arr); $insert_id = $this->oRefundModel->addRefund($arr);
} else { } else {
......
...@@ -28,47 +28,10 @@ class ORefundModel extends Model{ ...@@ -28,47 +28,10 @@ class ORefundModel extends Model{
* @return int|string * @return int|string
*/ */
public function addRefund($params){ public function addRefund($params){
$refund_arr = [];
if(isset($params["agent_id"])){
$refund_arr["agent_id"] = $params["agent_id"];
}
if(isset($params["agent_name"])){
$refund_arr["agent_name"] = $params["agent_name"];
}
if(isset($params["report_id"])){
$refund_arr["report_id"] = $params["report_id"];
}
if(isset($params["order_id"])){
$refund_arr["order_id"] = $params["order_id"];
}
if(isset($params["order_no"])){
$refund_arr["order_no"] = $params["order_no"];
}
if(isset($params["refund_money"])){
$refund_arr["refund_money"] = $params["refund_money"];
}
if(isset($params["name"])){
$refund_arr["name"] = $params["name"];
}
if(isset($params["bank"])){
$refund_arr["bank"] = $params["bank"];
}
if(isset($params["card_no"])){
$refund_arr["card_no"] = $params["card_no"];
}
if(isset($params["remark"])){
$refund_arr["remark"] = $params["remark"];
}
if(isset($params["remark_img"])){
$refund_arr["remark_img"] = $params["remark_img"];
}
$refund_arr["create_time"] = date("Y-m-d H:i:s",time());
$refund_arr["update_time"] = date("Y-m-d H:i:s",time());
Db::startTrans(); Db::startTrans();
try { try {
$id = $this->db_->insert($refund_arr); $id = $this->db_->insert($params);
Db::commit(); Db::commit();
return $id; return $id;
} catch (\Exception $e) { } catch (\Exception $e) {
......
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