Commit 324c4246 authored by zhuwei's avatar zhuwei

罚款记录改已支付

parent 9c4fca43
......@@ -180,11 +180,9 @@ class ImageDepot extends Basic
public function ceshi()
{
$position_service = new PositionService();//121.168936,32.174486 121.187333,30.691674
$is_ = $position_service->checkDistance('32.174486', '121.168936', '30.691674', '121.187333', 500);
dump($is_);
$a = $position_service->getDistance('32.174486', '121.168936', '30.691674', '121.187333');
dump($a);
$predict_see_time = strtotime("+2 hour", strtotime('2019-09-20 16:45:16'));
dump(time() < $predict_see_time);
}
......
......@@ -689,6 +689,19 @@ class AmercementService
public function updatePayAmercement($trade_no, $status, $remark)
{
$amercementPayModel = new OAmercementPayModel();
//罚款记录改已支付
if($status == 1){
$amercementPayModel = new OAmercementPayModel();
$payInfo = $amercementPayModel->getAmercementPayInfo(['trade_no'=>$trade_no], "amercement_id");
if(isset($payInfo['amercement_id']) && $payInfo['amercement_id'] > 0){
$data = [];
$data['id'] = $payInfo['amercement_id'];
$data['status'] = 1;
$data['operation_id'] = 0;
$data['operation_time'] = date("Y-m-d H:i:s", time());
$this->m_amercement->updateAmercementData($data);
}
}
$update["status"] = $status;
$update["remark"] = $remark;
return $amercementPayModel->updateAmercementPayData($trade_no, $update);
......
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