diff --git a/app/Controller/NotifyController.php b/app/Controller/NotifyController.php index 3ac5cd3..80f8b0f 100644 --- a/app/Controller/NotifyController.php +++ b/app/Controller/NotifyController.php @@ -20,6 +20,7 @@ use Hyperf\DbConnection\Db; use Hyperf\Guzzle\CoroutineHandler; use Exception; use Hyperf\Di\Annotation\Inject; +use Symfony\Component\HttpFoundation\Request; class NotifyController extends BaseController { @@ -54,6 +55,16 @@ class NotifyController extends BaseController $config = config('wxpay'); $app = Factory::payment($config); $app['guzzle_handler'] = CoroutineHandler::class; + + $get = $this->request->getQueryParams(); + $post = $this->request->getParsedBody(); + $cookie = $this->request->getCookieParams(); + $files = $this->request->getUploadedFiles(); + $server = $this->request->getServerParams(); + $xml = $this->request->getBody()->getContents(); + + $app['request'] = new Request($get,$post,[],$cookie,$files,$server,$xml); + var_dump('inside'); // 通知回调,进行业务处理 Db::beginTransaction(); @@ -109,9 +120,7 @@ class NotifyController extends BaseController } } - - - // return true; + return true; } // 修改订单、子订单状态 @@ -188,6 +197,8 @@ class NotifyController extends BaseController $res = $this->feiePrintService->feiePrint($orderMain->order_num); var_dump($res); + return true; + }); var_dump('$response', $response); diff --git a/app/Model/Goods.php b/app/Model/Goods.php index 83f2304..8009bda 100644 --- a/app/Model/Goods.php +++ b/app/Model/Goods.php @@ -9,4 +9,6 @@ class Goods extends Model const INVENTORY_NOLIMIT = 1; protected $table = 'ims_cjdc_goods'; + public $timestamps = false; + } \ No newline at end of file diff --git a/app/Model/Order.php b/app/Model/Order.php index 535bbc7..7053f71 100644 --- a/app/Model/Order.php +++ b/app/Model/Order.php @@ -7,5 +7,6 @@ namespace App\Model; class Order extends Model { protected $table = 'ims_cjdc_order'; + public $timestamps = false; } \ No newline at end of file diff --git a/app/Model/OrderGoods.php b/app/Model/OrderGoods.php index 12b1702..c82b527 100644 --- a/app/Model/OrderGoods.php +++ b/app/Model/OrderGoods.php @@ -5,4 +5,5 @@ namespace App\Model; class OrderGoods extends Model { protected $table = 'ims_cjdc_order_goods'; + public $timestamps = false; } \ No newline at end of file diff --git a/app/Model/OrderSalesStatistic.php b/app/Model/OrderSalesStatistic.php index a20edf8..5b58f92 100644 --- a/app/Model/OrderSalesStatistic.php +++ b/app/Model/OrderSalesStatistic.php @@ -26,4 +26,6 @@ class OrderSalesStatistic extends Model * @var array */ protected $casts = []; + + public $timestamps = false; } \ No newline at end of file diff --git a/app/Model/SpecCombination.php b/app/Model/SpecCombination.php index adf23a3..9d112d0 100644 --- a/app/Model/SpecCombination.php +++ b/app/Model/SpecCombination.php @@ -8,6 +8,7 @@ class SpecCombination extends Model { protected $table = 'ims_cjdc_spec_combination'; + public $timestamps = false; public function goods() { diff --git a/app/Model/SystemConfig.php b/app/Model/SystemConfig.php index 5f81111..74e8bb8 100644 --- a/app/Model/SystemConfig.php +++ b/app/Model/SystemConfig.php @@ -7,4 +7,5 @@ namespace App\Model; class SystemConfig extends Model { protected $table = 'ims_cjdc_system_config'; + public $timestamps = false; } \ No newline at end of file diff --git a/app/Model/Users.php b/app/Model/Users.php index 2a8d910..32cff4d 100644 --- a/app/Model/Users.php +++ b/app/Model/Users.php @@ -5,4 +5,5 @@ namespace App\Model; class Users extends Model { protected $table = 'ims_cjdc_user'; + public $timestamps = false; } \ No newline at end of file