shish 2 жил өмнө
parent
commit
606afb7c37

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

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