This commit is contained in:
2023-03-27 19:20:22 +08:00
parent 894354aaa3
commit 872e53fb47
5 changed files with 36 additions and 12 deletions
+5
View File
@@ -334,6 +334,11 @@ class LoginService extends BaseService
Db::rollBack();
return fail(HttpEnumCode::SERVER_ERROR);
}
// 创建im账号
$account = new Account();
// 创建单个账号
$account->createAccount($user->user_id,$user->user_name,"");
} else {
// 已注册用户
if ($user_type != $user['user_type']) {
+3 -2
View File
@@ -2,6 +2,7 @@
namespace App\Services;
use App\Amqp\Producer\AssignPharmacistProducer;
use App\Amqp\Producer\PrescriptionDistributePhProducer;
use App\Constants\DoctorTitleCode;
use App\Constants\HttpEnumCode;
@@ -1114,7 +1115,7 @@ class UserDoctorService extends BaseService
$data = array();
$data['order_prescription_id'] = $order_prescription_id;
$message = new PrescriptionDistributePhProducer($data);
$message = new AssignPharmacistProducer($data);
$producer = ApplicationContext::getContainer()->get(Producer::class);
$result = $producer->produce($message);
if (!$result) {
@@ -1280,7 +1281,7 @@ class UserDoctorService extends BaseService
$data = array();
$data['order_prescription_id'] = $order_prescription['order_prescription_id'];
$message = new PrescriptionDistributePhProducer($data);
$message = new AssignPharmacistProducer($data);
$producer = ApplicationContext::getContainer()->get(Producer::class);
$result = $producer->produce($message);
if (!$result) {