修改分享二维码,。增加命令行

This commit is contained in:
2023-06-25 15:24:32 +08:00
parent 092fc0586c
commit 3b9a3a97a2
2 changed files with 77 additions and 1 deletions
+7 -1
View File
@@ -1575,11 +1575,17 @@ class UserDoctorService extends BaseService
if (empty($qr_code)){
$weChat = new Wechat(1);
$env_version = "release";
$app_env = \Hyperf\Support\env("APP_ENV",'dev');
if ($app_env == "dev"){
$env_version = "trial";
}
$options = [
"scene" => "doctor_id=" . $user_doctor['doctor_id'],// query 参数
"page" => "",
"check_path" => false,
"env_version" => "develop",
"env_version" => $env_version,
];
$img_buffer = $weChat->getUnlimitedQRCode($options);