作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

是否豁免问题

@@ -117,11 +117,11 @@ class MeGuaranteeController extends WeChatBaseController @@ -117,11 +117,11 @@ class MeGuaranteeController extends WeChatBaseController
117 // $where['o.order_about_time'] = ['>',$time]; 117 // $where['o.order_about_time'] = ['>',$time];
118 // $where['o.order_expire_time2'] = ['>',$time]; 118 // $where['o.order_expire_time2'] = ['>',$time];
119 if(!empty($param['application']) && !empty($param['agent_phone'])){ 119 if(!empty($param['application']) && !empty($param['agent_phone'])){
120 - $whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'"; 120 + $whereor = "o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'";
121 }else if(!empty($param['application'])){ 121 }else if(!empty($param['application'])){
122 - $whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.insurer ="."'"."$insurer"."'"; 122 + $whereor = "o.status = 3 and o.order_expire_time2 > ".$time." and c.application = "."'"."$param[application]"."'"." and c.insurer ="."'"."$insurer"."'";
123 }else if(!empty($param['agent_phone'])){ 123 }else if(!empty($param['agent_phone'])){
124 - $whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'"; 124 + $whereor = "o.status = 3 and o.order_expire_time2 > ".$time." and c.agent_phone = $param[agent_phone] and c.insurer ="."'"."$insurer"."'";
125 }else{ 125 }else{
126 $whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.insurer ="."'"."$insurer"."'"; 126 $whereor = "o.user_id = $user_id and o.status = 3 and o.order_expire_time2 > ".$time." and c.insurer ="."'"."$insurer"."'";
127 } 127 }