moonsflyer 6 luni în urmă
părinte
comite
f96a4da3d5
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      app/common/service/GiftCardQrCodeService.php

+ 2 - 2
app/common/service/GiftCardQrCodeService.php

@@ -28,9 +28,9 @@ class GiftCardQrCodeService
 
             // 生成小程序码
             $config = WeChatConfigService::getMnpConfig();
-            return $config;
-            $app = Factory::miniProgram($config);
 
+            $app = Factory::miniProgram($config);
+            return $app;
             // 修正:使用正确的API方法
 //            $response = $app->app_code->getUnlimited($scene, [
 //                'page' => $page,