shish il y a 4 ans
Parent
commit
130b1e1159
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  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)) {
         if (empty($authCode)) {
             util::fail('支付失败');
             util::fail('支付失败');
         }
         }
-
-        $wxPrefix = [10, 11, 12, 13, 14, 15];
+        $wxPrefix = ['10', '11', '12', '13', '14', '15'];
         $isWx = false;
         $isWx = false;
         foreach ($wxPrefix as $wxId) {
         foreach ($wxPrefix as $wxId) {
-            if (strpos($authCode, (string)$wxId) == 0) {
+            if (strpos($authCode, $wxId) == 0) {
                 $isWx = true;
                 $isWx = true;
             }
             }
         }
         }