|
|
|
@ -41,6 +41,7 @@ class VerificationController extends Controller |
|
|
|
return $this->success(); |
|
|
|
} |
|
|
|
|
|
|
|
//生成核销二维码
|
|
|
|
public function qrcode() |
|
|
|
{ |
|
|
|
$id = request()->input('id'); //订单ID
|
|
|
|
@ -64,7 +65,7 @@ class VerificationController extends Controller |
|
|
|
]; |
|
|
|
$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) { |
|
|
|
$filename = $response->saveAs(storage_path('app/public/verify_code'), $verify_code); |
|
|
|
|