去除一些注释
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user