From b7bc0a08e575e5484ba69b6f4cc1d624b38ecfe0 Mon Sep 17 00:00:00 2001
From: Karson <karsonzhang@163.com>
Date: Tue, 11 Apr 2017 19:21:51 +0800
Subject: [PATCH] 修复又拍云上传回调时无法入库的BUG

---
 application/index/controller/Upyun.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/application/index/controller/Upyun.php b/application/index/controller/Upyun.php
index a3647fc..96ec812 100644
--- a/application/index/controller/Upyun.php
+++ b/application/index/controller/Upyun.php
@@ -13,15 +13,15 @@ class Upyun extends Frontend
 
     public function notify()
     {
-        $url = $this->request->param("url");
-        $code = $this->request->param("code");
-        $message = $this->request->param("message");
-        $sign = $this->request->param("sign");
-        $time = $this->request->param("time");
-        $extparam = $this->request->param("ext-param");
+        $url = $this->request->post("url");
+        $code = $this->request->post("code");
+        $message = $this->request->post("message");
+        $sign = $this->request->post("sign");
+        $time = $this->request->post("time");
+        $extparam = $this->request->post("ext-param");
         if ($url && $code && $message && $time && $sign)
         {
-            $arr = [$code, $message, $url, $time, Config::get('upload', 'formkey')];
+            $arr = [$code, $message, $url, $time, Config::get('upload.formkey')];
             if ($extparam)
             {
                 $arr[] = $extparam;
--
libgit2 0.24.0