Browse Source

getUnlimit增加path路由

develop
李可松 4 years ago
parent
commit
1a0d9223a8
  1. 2
      app/Http/Controllers/Api/VerificationController.php

2
app/Http/Controllers/Api/VerificationController.php

@ -64,7 +64,7 @@ class VerificationController extends Controller
]; ];
$app = Factory::miniProgram($config); $app = Factory::miniProgram($config);
$response = $app->app_code->getUnlimit($verify_code);
$response = $app->app_code->getUnlimit($verify_code, ['path' => 'pages/index/index']);
if ($response instanceof \EasyWeChat\Kernel\Http\StreamResponse) { if ($response instanceof \EasyWeChat\Kernel\Http\StreamResponse) {
$filename = $response->saveAs(storage_path('app/public/verify_code'), $verify_code); $filename = $response->saveAs(storage_path('app/public/verify_code'), $verify_code);

Loading…
Cancel
Save