Browse Source

修改生成二维码path

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

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

@ -41,6 +41,7 @@ class VerificationController extends Controller
return $this->success(); return $this->success();
} }
//生成核销二维码
public function qrcode() public function qrcode()
{ {
$id = request()->input('id'); //订单ID $id = request()->input('id'); //订单ID
@ -64,7 +65,7 @@ class VerificationController extends Controller
]; ];
$app = Factory::miniProgram($config); $app = Factory::miniProgram($config);
$response = $app->app_code->getUnlimit($verify_code, ['path' => 'pages/index/index']);
$response = $app->app_code->getUnlimit($verify_code, ['path' => 'pages/verification/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