edit-liche-order
This commit is contained in:
@@ -216,7 +216,7 @@ class Order extends Wxapp{
|
||||
$agree = $this->receiver_order_contracts_model->count(['o_id'=>$val['o_id'],'status'=>1]) ? true : false;
|
||||
$contract_list = [];
|
||||
if($agree){
|
||||
$contracts = $this->receiver_order_contracts_model->select(['o_id'=>$val['o_id'],'status'=>1],'','','','id,type,file');
|
||||
$contracts = $this->receiver_order_contracts_model->select(['o_id'=>$val['o_id'],'status'=>1,'type <> 6' => null],'','','','id,type,file');
|
||||
foreach ($contracts as $item) {
|
||||
$contract_list[] = [
|
||||
'title' => $contract_type_arr[$item['type']],
|
||||
|
||||
@@ -380,7 +380,7 @@ class User extends Wxapp{
|
||||
$mobile = $this->session['mobile'];
|
||||
|
||||
$where = [
|
||||
"(mobile={$mobile} or owner_name={$mobile})" => null,
|
||||
"(mobile={$mobile} or owner_mobile={$mobile})" => null,
|
||||
"status" => 1,
|
||||
];
|
||||
$count = $this->receiver_orders_v2_model->count($where);
|
||||
|
||||
Reference in New Issue
Block a user