x
This commit is contained in:
parent
3a93fa5508
commit
ebf0807678
@ -22,6 +22,7 @@ use App\Model\OrderPrescriptionIcd;
|
|||||||
use App\Model\UserDoctor;
|
use App\Model\UserDoctor;
|
||||||
use App\Model\UserDoctorInfo;
|
use App\Model\UserDoctorInfo;
|
||||||
use App\Services\ImService;
|
use App\Services\ImService;
|
||||||
|
use App\Services\InquiryService;
|
||||||
use App\Services\MessagePush;
|
use App\Services\MessagePush;
|
||||||
use App\Services\OrderPrescriptionService;
|
use App\Services\OrderPrescriptionService;
|
||||||
use App\Services\PatientOrderService;
|
use App\Services\PatientOrderService;
|
||||||
@ -751,17 +752,11 @@ class TestController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function test_13(){
|
public function test_13(){
|
||||||
$data = array();
|
$out_trade_no = $this->request->input('out_trade_no');
|
||||||
$data['order_inquiry_id'] = "502880753563086849";
|
|
||||||
|
|
||||||
$message = new AutoFinishInquiryDelayDirectProducer($data);
|
|
||||||
$message->setDelayMs(1000 * 20);
|
|
||||||
$producer = $this->container->get(Producer::class);
|
|
||||||
$res = $producer->produce($message);
|
|
||||||
if (!$res) {
|
|
||||||
Db::rollBack();
|
|
||||||
return fail(HttpEnumCode::SERVER_ERROR, "订单创建失败");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// 需退款
|
||||||
|
$inquiryService = new InquiryService();
|
||||||
|
$inquiryService->inquiryRefund($out_trade_no, "取消问诊");
|
||||||
|
return success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user