Compare commits

..

2 Commits

Author SHA1 Message Date
tk
d079b8263d 【类 型】:test
【主	题】:
【描	述】:
	[原因]:
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-06-21 17:38:55 +08:00
tk
a14eb9f3e1 【类 型】:style
【主	题】:删掉冗余的 函数
【描	述】:
	[原因]:
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-06-21 13:22:34 +08:00
2 changed files with 3 additions and 25 deletions

View File

@ -76,7 +76,7 @@ class PayController extends PublicController
//设置获取签名的订单参数
$orderParameter = [
'out_trade_no' => $order['order_sn'],
'description' => $order['shop_id'], //用jwt加密 shop_id商铺id 存放
'description' => $order['shop_id'], //shop_id商铺id 存放
'amount' => [
'total' => $order['total_price'] * 100, //单位:分
'currency' => 'CNY',
@ -113,8 +113,8 @@ class PayController extends PublicController
$orderDb->where($where)->data($data)->save();
}
// 构建发布主题 并向地面终端提示刷新信息
$topic = 'refreshQuestList/' . $result['resource']['ciphertext']['description'];
$this->publish($topic, 1);
$topic = 'refreshQuestList/2dc23dcfecc05fb1';
$this->publish($topic, $result['resource']['ciphertext']['description']);
} catch (\Exception $e) {
// 捕获并记录可能的异常
error_log('支付回调处理错误:' . $e->getMessage());

View File

@ -525,28 +525,6 @@ class PlaneController extends PublicController
echo json_encode(array('status' => 0, 'msg' => '删除失败'));
}
}
/**
* @description: 获取 待发货 待收货 没有发起退款和正在发起退款状态 订单
*/
public function getQuestList()
{
if ($this->tokenShop_id != C('powerId')) { //非总管理员
$where['lr_order.shop_id'] = $this->tokenShop_id;
}
$where['lr_order.del'] = "0";
$where['lr_order.status'] = array('in', array('20', '30')); //待发货 待收货
$where['lr_order.back'] = array('in', array('0', '1')); //没有退款状态 和 申请退款状态 一并返回
$orderDb = D('order');
$field = array('lr_order.id', 'lr_order.shop_id', 'lr_order.order_sn', 'lr_order.food_sn', 'lr_order.uid', 'lr_user.name', 'lr_order.price', 'lr_order.tel', 'lr_order.status', 'lr_order.receive_site_id', 'lr_order.receive_site_name', 'lr_receive_site.bind_route', 'lr_receive_site.runing', 'lr_order.product_num', 'lr_order.quest', 'lr_order.back', 'lr_order.addtime', 'lr_order.remark', 'lr_order.back_remark');
$questList = $orderDb->join('lr_user ON lr_order.uid = lr_user.id')->join('lr_receive_site ON lr_order.receive_site_id = lr_receive_site.id')->where($where)->field($field)->select();
$orderProductDb = D('order_product');
foreach ($questList as $key => $value) {
$proWhere['order_id'] = $value['id'];
$questList[$key]['products'] = $orderProductDb->where($proWhere)->select();
}
echo json_encode(array('status' => 1, 'msg' => '访问成功', "questList" => $questList));
}
/**
* @description: 改变订单状态或退款字段 不处理 已取消 未付款 交易关闭的订单
*/