新增问诊消息推送
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Model\DoctorInquiryTime;
|
||||
use App\Model\DoctorPharmacistCert;
|
||||
use App\Model\UserDoctor;
|
||||
use App\Services\ImService;
|
||||
use App\Services\MessagePush;
|
||||
use App\Utils\Log;
|
||||
use Extend\Alibaba\Oss;
|
||||
use Extend\Ca\Ca;
|
||||
@@ -435,17 +436,11 @@ class TestController extends AbstractController
|
||||
}
|
||||
|
||||
public function test_10(){
|
||||
$data = array();
|
||||
$data['order_inquiry_id'] = "499163900703698944";
|
||||
$message = new CancelUnpayOrdersDelayDirectProducer($data);
|
||||
$message->setDelayMs(1000 * 5);
|
||||
$producer = $this->container->get(Producer::class);
|
||||
$res = $producer->produce($message);
|
||||
if (!$res) {
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR, "订单创建失败");
|
||||
}
|
||||
$MessagePush = new MessagePush(2,"491923510680424449","499172549291458560");
|
||||
$result = $MessagePush->noInquiry();
|
||||
|
||||
// $MessagePush = new MessagePush(2,"491923510680424449","499176434366210048");
|
||||
// $result = $MessagePush->patientReplyNotice("你好1");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user