rabin 1 年之前
父节点
当前提交
be127e5008
共有 1 个文件被更改,包括 4 次插入1 次删除
  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);
     }
 
@@ -88,7 +91,7 @@ class Notify extends Api
             Dever::load('order', 'seller')->notify($order, $msg, $update);
             echo $this->info['notify_success'];die;
         }
-        echo 'error';die;
+        $this->error('error');
     }
 
     private function error($msg)