修改上报数据

This commit is contained in:
wucongxing 2023-08-16 13:35:57 +08:00
parent 82b2d4ff7a
commit 76661ed7b7
3 changed files with 9 additions and 25 deletions

View File

@ -1330,7 +1330,7 @@ class CallBackController extends AbstractController
public function DetectionResultCallBack(): ResponseInterface public function DetectionResultCallBack(): ResponseInterface
{ {
$request_params = $this->request->all(); $request_params = $this->request->all();
$auth = $this->request->getHeader("Authorization"); $auth = $this->request->header("Authorization");
if (empty($auth)){ if (empty($auth)){
return $this->detectionResultFailReturn("非法请求"); return $this->detectionResultFailReturn("非法请求");
} }
@ -1361,7 +1361,7 @@ class CallBackController extends AbstractController
return $this->detectionResultFailReturn("非法appId"); return $this->detectionResultFailReturn("非法appId");
} }
$time = date('Y-m-d'); $time = date('Ymd');
$sign = md5($basic_detection_organ['app_id'] . $basic_detection_organ['app_secret'] . $time); $sign = md5($basic_detection_organ['app_id'] . $basic_detection_organ['app_secret'] . $time);
if ($auth != $sign){ if ($auth != $sign){
return $this->detectionResultFailReturn("签名错误"); return $this->detectionResultFailReturn("签名错误");

View File

@ -370,31 +370,14 @@ class TestController extends AbstractController
} }
public function test_15(){ public function test_15(){
$env_version = "release"; $oss = new Oss();
$app_env = \Hyperf\Support\env("APP_ENV",'dev'); $pic = $oss->getObjectToRAM("applet/patient/detection/pdf/SDBA23S16881.pdf");
if ($app_env == "dev"){ if (empty($pic)){
$env_version = "trial"; throw new BusinessException("检测管图片错误");
} }
$options = [ $pic = base64_encode($pic);
'json' => [ Log::getInstance("请求参数")->info($pic);
"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);
} }
// 设置坐班医生 // 设置坐班医生

View File

@ -37,6 +37,7 @@ return [
Constant::OPTION_MAX_REQUEST => 100000, Constant::OPTION_MAX_REQUEST => 100000,
Constant::OPTION_SOCKET_BUFFER_SIZE => 2 * 1024 * 1024, Constant::OPTION_SOCKET_BUFFER_SIZE => 2 * 1024 * 1024,
Constant::OPTION_BUFFER_OUTPUT_SIZE => 2 * 1024 * 1024, Constant::OPTION_BUFFER_OUTPUT_SIZE => 2 * 1024 * 1024,
Constant::OPTION_PACKAGE_MAX_LENGTH => 5 * 1024 * 1024,
], ],
'callbacks' => [ 'callbacks' => [
Event::ON_WORKER_START => [Hyperf\Framework\Bootstrap\WorkerStartCallback::class, 'onWorkerStart'], Event::ON_WORKER_START => [Hyperf\Framework\Bootstrap\WorkerStartCallback::class, 'onWorkerStart'],