rabin 1 éve
szülő
commit
be127e5008
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      src/bao/connect/api/Notify.php

+ 4 - 1
src/bao/connect/api/Notify.php

@@ -28,6 +28,9 @@ class Notify extends Api
                 }
                 }
             }
             }
         }
         }
+        if (!$input) {
+            $this->error('error');
+        }
         $this->load($input, $connect_id, $api_id, $order_id);
         $this->load($input, $connect_id, $api_id, $order_id);
     }
     }
 
 
@@ -88,7 +91,7 @@ class Notify extends Api
             Dever::load('order', 'seller')->notify($order, $msg, $update);
             Dever::load('order', 'seller')->notify($order, $msg, $update);
             echo $this->info['notify_success'];die;
             echo $this->info['notify_success'];die;
         }
         }
-        echo 'error';die;
+        $this->error('error');
     }
     }
 
 
     private function error($msg)
     private function error($msg)