Sfoglia il codice sorgente

debug notify error

stanley-king 3 anni fa
parent
commit
6d927188a7

+ 3 - 0
docker/compose/xyzt/arw/restart_coall.sh

@@ -0,0 +1,3 @@
+docker-compose stop -t 1200 coall
+docker-compose up -d coall
+docker-compose ps

+ 22 - 20
rdispatcher/processor.php

@@ -37,26 +37,28 @@ class processor extends queue\ILooper
                     $input = $params['params'];
                     if (empty($channel) || empty($params))
                         continue;
-//                    $this->mProxy->notify($channel, $input);
-                } elseif ($method == 'notify_mechant') {
-                    $order_id = intval($params['order_id']);
-                    $manual = $params['manual'] ?? false;
-                    $this->mProxy->notify_merchant($order_id, $manual);
-                } elseif ($method == 'query') {
-                    $order_id = intval($params['order_id']);
-                    $this->mProxy->query($order_id);
-                } elseif ($method == 'query_net') {
-                    $order_id = intval($params['order_id']);
-                    $this->mProxy->query_net($order_id);
-                } elseif ($method == 'manual_success') {
-                    $order_id = intval($params['order_id']);
-                    $this->mProxy->manual_success($order_id);
-                } elseif ($method == 'manual_cancel') {
-                    $order_id = intval($params['order_id']);
-                    $this->mProxy->manual_cancel($order_id);
-                } elseif ($method == 'addthird') {
-                    $this->mProxy->addthird($params);
-                } else {
+                    $this->mProxy->notify($channel, $input);
+                }
+//                elseif ($method == 'notify_mechant') {
+//                    $order_id = intval($params['order_id']);
+//                    $manual = $params['manual'] ?? false;
+//                    $this->mProxy->notify_merchant($order_id, $manual);
+//                } elseif ($method == 'query') {
+//                    $order_id = intval($params['order_id']);
+//                    $this->mProxy->query($order_id);
+//                } elseif ($method == 'query_net') {
+//                    $order_id = intval($params['order_id']);
+//                    $this->mProxy->query_net($order_id);
+//                } elseif ($method == 'manual_success') {
+//                    $order_id = intval($params['order_id']);
+//                    $this->mProxy->manual_success($order_id);
+//                } elseif ($method == 'manual_cancel') {
+//                    $order_id = intval($params['order_id']);
+//                    $this->mProxy->manual_cancel($order_id);
+//                } elseif ($method == 'addthird') {
+//                    $this->mProxy->addthird($params);
+//                }
+                else {
                     Log::record("Error Method={$method}", Log::DEBUG);
                 }
             }

+ 4 - 2
test/TestRefillThird.php

@@ -81,9 +81,11 @@ class TestRefillThird extends TestCase
         $params = [ 'mchid' => 1092,
             'buyer_id' => 60221,
             'amount' => 30,
-            'mch_order' => '89721626805040540201',//$this->make_sn(),
+            'mch_order' => $this->make_sn(),
             'org_quality' => 1,
-            'card_no' => '13911129867'
+            'card_no' => '13911129867',
+            'card_type' => 5,
+            'regin_no' => 1
         ];
 
         $ret = refill\util::push_add($params);