修改消息推送
This commit is contained in:
@@ -159,7 +159,7 @@ class CallBackController extends AbstractController
|
||||
return $server->serve();
|
||||
}
|
||||
|
||||
// 发送问诊消息-等待医生接诊
|
||||
// 发送IM消息-等待医生接诊
|
||||
$imService = new ImService();
|
||||
$imService->waitDoctorInquiry($order_inquiry,$user_doctor['user_id'],$order_inquiry['user_id']);
|
||||
|
||||
@@ -359,6 +359,7 @@ class CallBackController extends AbstractController
|
||||
// 支付成功
|
||||
$data['order_product_status'] = 2;
|
||||
$data['pay_status'] = 2;// 支付状态(1:未支付 2:已支付 3:支付中 4:支付失败 5:支付超时 6:支付关闭 7:已撤销 8:转入退款)
|
||||
$data['pay_time'] = date('Y-m-d H:i:s',strtotime($message['success_time']));// 支付时间
|
||||
|
||||
}elseif($message['trade_state'] == "CLOSED"){
|
||||
// 已关闭
|
||||
|
||||
@@ -10,6 +10,7 @@ use App\Model\DoctorInquiryTime;
|
||||
use App\Model\OrderPrescriptionProduct;
|
||||
use App\Model\OrderProduct;
|
||||
use App\Model\OrderProductItem;
|
||||
use App\Model\User;
|
||||
use App\Model\UserCaCert;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\OrderPrescription;
|
||||
@@ -29,6 +30,8 @@ use Hyperf\Utils\ApplicationContext;
|
||||
use Imagick;
|
||||
use Intervention\Image\ImageManager;
|
||||
use Spatie\PdfToImage\Pdf;
|
||||
use Swoole\Coroutine;
|
||||
use Swoole\Coroutine\WaitGroup;
|
||||
use TCPDF;
|
||||
|
||||
class TestController extends AbstractController
|
||||
@@ -578,16 +581,6 @@ class TestController extends AbstractController
|
||||
}
|
||||
|
||||
public function test_11(){
|
||||
$PatientOrderService = new PatientOrderService();
|
||||
$order_inquiry_id = $PatientOrderService->getNotFinishedOrderInquiry(4,"501764342039097344");
|
||||
dump($order_inquiry_id);
|
||||
dump(!empty($order_inquiry_id));
|
||||
if (!empty($order_inquiry_id)) {
|
||||
return 111;
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "当前患者存在进行中的问诊订单");
|
||||
}
|
||||
|
||||
die;
|
||||
$order_prescription_id = "501751534291394561";
|
||||
|
||||
// 获取处方数据
|
||||
@@ -637,6 +630,8 @@ class TestController extends AbstractController
|
||||
$order_prescription_product->toArray(),
|
||||
$order_product->toArray()
|
||||
);
|
||||
|
||||
dump($result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user