moonsflyer 6 kuukautta sitten
vanhempi
commit
f96a4da3d5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/common/service/GiftCardQrCodeService.php

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

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