【类 型】:fix
【主 题】:写入数据库字段 键值修改 【描 述】: [原因]:因订单表字段修改 查询数据库 键值修改 [过程]:stauts 改为 main_status 查询值也有变化 [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
87e65c004d
commit
3be466e679
@ -152,9 +152,9 @@ class CheckController extends PublicController
|
|||||||
*/
|
*/
|
||||||
public function getOrderList()
|
public function getOrderList()
|
||||||
{
|
{
|
||||||
$field = array('order_sn,food_sn,total_weight,total_num,total_price,refund_price,receiver,tel,receive_site_id,receive_site_name,remark,product_snapshot,main_status,shipment_status,back_status,back_remark,back_time,back_addtime,addtime');
|
$field = array('order_sn,food_sn,total_weight,total_num,total_price,refund_price,receiver,tel,receive_site_id,receive_site_name,remark,product_snapshot,main_status,shipment_status,refund_status,refund_status_remark,order_time,paid_time,refunded_time,completed_time,received_time,shipped_time,delivered_time,refundapply_time,rejected_time');
|
||||||
$where['openid'] = $this->openid;
|
$where['openid'] = $this->openid;
|
||||||
$where['status'] = array('neq', 'canceled'); //排除已取消的订单
|
$where['main_status'] = array('neq', '已取消'); //排除已取消的订单
|
||||||
$orderDb = D('order');
|
$orderDb = D('order');
|
||||||
if ($orderList = $orderDb->where($where)->field($field)->select()) {
|
if ($orderList = $orderDb->where($where)->field($field)->select()) {
|
||||||
echo json_encode(array('status' => 1, 'msg' => '访问成功', "orderList" => $orderList));
|
echo json_encode(array('status' => 1, 'msg' => '访问成功', "orderList" => $orderList));
|
||||||
|
@ -68,8 +68,7 @@ class PayController extends PublicController
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
if ($order['openid'] != $this->openid || (float)$order['total_price'] < (float)$shop['price_min'] || $order['total_weight'] > $shop['weight_max']) {
|
if ($order['openid'] != $this->openid || (float)$order['total_price'] < (float)$shop['price_min'] || $order['total_weight'] > $shop['weight_max']) {
|
||||||
$msg = array($order['openid'], $this->openid, (float)$order['total_price'], (float)$shop['price_min'], $order['total_weight'], $shop['weight_max']);
|
echo json_encode(array('status' => 0, 'msg' => '提交信息异常'));
|
||||||
echo json_encode(array('status' => 0, 'msg' => $msg));
|
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user