From 5cb77a9d52b392bc1cb7eb9b5846da06cb470673 Mon Sep 17 00:00:00 2001
From: lccsw <1127794702@qq.com>
Date: Tue, 21 Dec 2021 17:15:56 +0800
Subject: [PATCH] edit-home-tool
---
admin/controllers/appdistribution/Distribution.php | 4 ----
api/controllers/wxapp/licheb/Cusorder.php | 4 ++--
home/controllers/h5/Toole.php | 4 ++++
home/views/h5/toole/pdf.php | 6 ++++++
4 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/admin/controllers/appdistribution/Distribution.php b/admin/controllers/appdistribution/Distribution.php
index 89456528..a5ff6f90 100755
--- a/admin/controllers/appdistribution/Distribution.php
+++ b/admin/controllers/appdistribution/Distribution.php
@@ -231,8 +231,6 @@ class Distribution extends AppBase
return $this->show_json(SYS_CODE_FAIL, '参数错误');
}
$this->load->model($this->mdApp->appConfig()[$this->app_id]['model'], 'mdAppUser');
- //$this->load->model('apporder/order_purchase_model', 'mdOrderPurchase');
- //$this->load->model('appitem/items_model', 'mdItems');
$lists = array();
$statusAry = array(0 => '进行中', 1 => '已完成', -1 => '已失效');
@@ -253,8 +251,6 @@ class Distribution extends AppBase
$res = $this->mdDealLog->select($where, 'id DESC', $params['page'], $params['size'], 'cf_sid,type,status,money,c_time');
foreach ($res as $key => $value) {
$setValue = array();
- $reOp = $this->mdOrderPurchase->get(array('sid' => $value['cf_sid']), 'item_id,item_title,item_num
- ,total_price,sku_id,app_uid');
$source = $item_title = '';
$item_num = 0;
$total_price = $expect_money = 0.00;
diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php
index 3f8b57cf..a11182f9 100644
--- a/api/controllers/wxapp/licheb/Cusorder.php
+++ b/api/controllers/wxapp/licheb/Cusorder.php
@@ -303,10 +303,10 @@ class Cusorder extends Wxapp{
$where["(name='{$keyword}' or mobile='{$keyword}')"] = null;
}
if($status == 11){ //已完成
- $where['status'] = 6;
+ $where['status>='] = 6;
}elseif($status == 10 ){ //进行中
$where['status>='] = 0;
- $where['status!='] = 6;
+ $where['status<'] = 6;
}else{
strlen($status) && $where['status'] = $status;
}
diff --git a/home/controllers/h5/Toole.php b/home/controllers/h5/Toole.php
index 8642310a..ca2b1c2d 100644
--- a/home/controllers/h5/Toole.php
+++ b/home/controllers/h5/Toole.php
@@ -196,6 +196,10 @@ class Toole extends CI_Controller {
$url.="agent?id=".$params['oid'];
}elseif($params['type']==3){
$url.="car_ck?id=".$params['oid'];
+ }elseif($params['type']==4){
+ $url.="car_sp?id=".$params['oid'];
+ }elseif($params['type']==5){
+ $url.="agent_sp?id=".$params['oid'];
}else{
$this->show_json(0,'参数错误,未知合同类型');
}
diff --git a/home/views/h5/toole/pdf.php b/home/views/h5/toole/pdf.php
index e2904e3d..6d24cba8 100644
--- a/home/views/h5/toole/pdf.php
+++ b/home/views/h5/toole/pdf.php
@@ -32,6 +32,12 @@
+
+