去除一些注释

This commit is contained in:
2023-10-24 17:29:10 +08:00
parent 9c4136e917
commit 202db1a621
2 changed files with 33 additions and 29 deletions
+31 -18
View File
@@ -462,27 +462,40 @@ class TestController extends AbstractController
}
public function test_17(){
$weChat = new Wechat(1);
$env_version = "release";
$app_env = \Hyperf\Support\env("APP_ENV",'dev');
if ($app_env == "dev"){
$env_version = "trial";
}
$re = \Hyperf\Context\ApplicationContext::getContainer()->get(CacheInterface::class);
$a = $re->set("wucongxing","1",100);
dump($a);
$b = $re->get("wucongxing");
dump($b);
$options = [
"scene" => "?doctor_id=516900370252341248",// query 参数
"page" => "pages/expertDetail/expertDetail",
"check_path" => false,
"env_version" => $env_version,
];
$redis = \Hyperf\Context\ApplicationContext::getContainer()->get(Redis::class);
$c = $redis->get("wucongxing");
dump($c);
$img_buffer = $weChat->getUnlimitedQRCode($options);
$oss = new Oss();
$filename = "applet/doctor/card/516900370252341248.jpg";
$oss->putObject($filename, $img_buffer);
//
// $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=516900370252341248",// query 参数
// "page" => "pages/expertDetail/expertDetail",
// "check_path" => false,
// "env_version" => $env_version,
// ];
//
// $img_buffer = $weChat->getUnlimitedQRCode($options);
//
// $oss = new Oss();
//
// $filename = "applet/doctor/card/516900370252341248.jpg";
//
// $oss->putObject($filename, $img_buffer);
}
}