diff --git a/FlyCube/Api/Controller/PayController.class.php b/FlyCube/Api/Controller/PayController.class.php index 306bd0a..5b1b82c 100644 --- a/FlyCube/Api/Controller/PayController.class.php +++ b/FlyCube/Api/Controller/PayController.class.php @@ -76,7 +76,8 @@ class PayController extends PublicController //设置获取签名的订单参数 $orderParameter = [ 'out_trade_no' => $order['order_sn'], - 'description' => $order['shop_id'], //shop_id商铺id 存放 + 'description' => '', //存商品名称吧 后期在做调整 暂时空置 + 'attach' => $order['shop_id'], // 将 shop_id 存放在 attach 字段 'amount' => [ 'total' => $order['total_price'] * 100, //单位:分 'currency' => 'CNY', @@ -100,7 +101,7 @@ class PayController extends PublicController { // 实例化 Yansongda Pay $result = Pay::wechat($this->config)->callback(); - $this->publish('refreshQuestList/2dc23dcfecc05fb1', $result); + $this->publish('refreshQuestList/2dc23dcfecc05fb1', $result['resource']['ciphertext']['attach']); try { // 验证成功,处理业务逻辑 if ($result['resource']['ciphertext']['trade_state'] == 'SUCCESS') {