shish il y a 2 ans
Parent
commit
606afb7c37
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      app-ghs/controllers/TestController.php

+ 4 - 4
app-ghs/controllers/TestController.php

@@ -56,20 +56,20 @@ class TestController extends BaseController
                 $relateId = $change['relateId'] ?? 0;
                 $relateId = $change['relateId'] ?? 0;
                 $amount = $change['amount'] ?? 0;
                 $amount = $change['amount'] ?? 0;
 
 
-                if (strpos($event, '购买花材') != false) {
+                if (strpos($event, '购买花材') >= 0) {
                     $flag['40-' . $relateId] = $amount;
                     $flag['40-' . $relateId] = $amount;
                 }
                 }
-                if (strpos($event, '退款') != false) {
+                if (strpos($event, '退款') >= 0) {
                     $flag['33-' . $relateId] = $amount;
                     $flag['33-' . $relateId] = $amount;
                 }
                 }
-                if (strpos($event, '结账') != false) {
+                if (strpos($event, '结账') >= 0) {
                     $flag['20-' . $relateId] = $amount;
                     $flag['20-' . $relateId] = $amount;
                 }
                 }
 
 
             }
             }
         }
         }
         print_r($flag);
         print_r($flag);
-
+        die;
         $orderList = OrderClass::getAllByCondition(['customId' => $customId, 'debtPrice>' => 0], null, 'id,actPrice,payTime', null);
         $orderList = OrderClass::getAllByCondition(['customId' => $customId, 'debtPrice>' => 0], null, 'id,actPrice,payTime', null);
         $arr = [];
         $arr = [];
         if (!empty($orderList)) {
         if (!empty($orderList)) {