修改上报数据

This commit is contained in:
2023-08-16 13:35:57 +08:00
parent 82b2d4ff7a
commit 76661ed7b7
3 changed files with 9 additions and 25 deletions
+6 -23
View File
@@ -370,31 +370,14 @@ class TestController extends AbstractController
}
public function test_15(){
$env_version = "release";
$app_env = \Hyperf\Support\env("APP_ENV",'dev');
if ($app_env == "dev"){
$env_version = "trial";
$oss = new Oss();
$pic = $oss->getObjectToRAM("applet/patient/detection/pdf/SDBA23S16881.pdf");
if (empty($pic)){
throw new BusinessException("检测管图片错误");
}
$options = [
'json' => [
"path" => "pages/index/index",
"query" => "doctor_id=539452507563012096",
"expire_type" => 1,
"expire_interval" => 1,
"env_version" => $env_version,
]
];
$Wechat = new Wechat(1);
$result = $Wechat->createUrlLink($options);
dump($result);
$options = [
"url_link" => $result['url_link']
];
$result = $Wechat->getUrlLink($options);
dump($result);
$pic = base64_encode($pic);
Log::getInstance("请求参数")->info($pic);
}
// 设置坐班医生