【类 型】:fix
【主 题】:退款接口 调试完成 【描 述】: [原因]: [过程]:退款在回调时 修改订单状态 并通过mqtt 发送提示前端更新 [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
4b3738adf4
commit
bcba3a5811
@ -108,7 +108,6 @@ class PayController extends PublicController
|
||||
*/
|
||||
public function notifyCallback()
|
||||
{
|
||||
|
||||
try {
|
||||
// 实例化 Yansongda Pay 并处理回调
|
||||
$result = Pay::wechat($this->config)->callback();
|
||||
@ -132,8 +131,8 @@ class PayController extends PublicController
|
||||
}
|
||||
// 构建发布主题 并向地面终端提示刷新信息
|
||||
$field = array('shop_id');
|
||||
$shop_id = $orderDb->where($where)->field($field)->find();
|
||||
$topic = 'refreshQuestList/' . $shop_id;
|
||||
$order = $orderDb->where($where)->field($field)->find();
|
||||
$topic = 'refreshQuestList/' . $order['shop_id'];
|
||||
$this->publish($topic, 1);
|
||||
} catch (\Exception $e) {
|
||||
// 捕获并记录可能的异常
|
||||
|
Loading…
Reference in New Issue
Block a user