Browse Source

checkredis

yuenan
娄梦宁 3 years ago
parent
commit
02ed40a855
3 changed files with 4 additions and 1 deletions
  1. +1
    -0
      addons/unishop/controller/Order.php
  2. +2
    -1
      application/admin/controller/unishop/Order.php
  3. +1
    -0
      public/assets/js/backend/unishop/order.js

+ 1
- 0
addons/unishop/controller/Order.php View File

@@ -160,6 +160,7 @@ class Order extends Base
'address'=>$data["address"],
'email'=>$data["email"],
"spec"=>$data["spec"],
"number"=>$data["number"],
]);
$this->success('', []);
return ;


+ 2
- 1
application/admin/controller/unishop/Order.php View File

@@ -525,13 +525,14 @@ class Order extends Backend
order.address,
unishop_product.title,
order.spec,
order.number,
order.order_price,
order.createtime,
FROM_UNIXTIME(order.createtime,'%Y-%m-%d %H:%i:%S')
")
->select();
$list = collection($list)->toArray();
$title = ['订单号','姓名','手机号','地址','商品','商品规格','总金额','下单时间','备注'];
$title = ['订单号','姓名','手机号','地址','商品','商品规格','购买数量','总金额','下单时间','备注'];
// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();


+ 1
- 0
public/assets/js/backend/unishop/order.js View File

@@ -94,6 +94,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'address', title: __('地址'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'},
{field: 'title', title: __('商品')},
{field: 'spec', title: __('规格')},
{field: 'number', title: __('购买数量')},
// {field: 'user_id', title: __('User_id')},
// {field: 'user.username', title: __('User name')},
{field: 'out_trade_no', title: __('Out_trade_no')},


Loading…
Cancel
Save