shish před 4 roky
rodič
revize
130b1e1159
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      app-ghs/controllers/OrderController.php

+ 2 - 3
app-ghs/controllers/OrderController.php

@@ -52,11 +52,10 @@ class OrderController extends BaseController
         if (empty($authCode)) {
             util::fail('支付失败');
         }
-
-        $wxPrefix = [10, 11, 12, 13, 14, 15];
+        $wxPrefix = ['10', '11', '12', '13', '14', '15'];
         $isWx = false;
         foreach ($wxPrefix as $wxId) {
-            if (strpos($authCode, (string)$wxId) == 0) {
+            if (strpos($authCode, $wxId) == 0) {
                 $isWx = true;
             }
         }