作者 郭鑫

透视卡修改

@@ -29,7 +29,7 @@ class CommonController extends HomeBaseController @@ -29,7 +29,7 @@ class CommonController extends HomeBaseController
29 $url = explode('/',$_SERVER['PATH_INFO']); 29 $url = explode('/',$_SERVER['PATH_INFO']);
30 $count_url = count($url); 30 $count_url = count($url);
31 $fun = $url[$count_url-1]; 31 $fun = $url[$count_url-1];
32 - if($fun == 'join' || $fun == 'login' || $fun == 'upload_one' || $fun == 'index' || $url[1] == 'Article' || $url[1] == 'Index' || $url[1] == 'Thirdsend' ){ 32 + if($fun == 'join' || $fun == 'login' || $fun == 'upload_one' || $fun == 'index' || $url[1] == 'Article' || $url[1] == 'Index' || $url[1] == 'Thirdsend' || $url[1] == 'Notify' || $url[1] == 'Alipay' || $url[1] == 'Alipaywap' ){
33 $connect = 1; 33 $connect = 1;
34 }else{ 34 }else{
35 $connect = 2; 35 $connect = 2;
@@ -59,7 +59,11 @@ class NotifyCommonController extends HomeBaseController @@ -59,7 +59,11 @@ class NotifyCommonController extends HomeBaseController
59 if($orderInfo['type'] == 3) { 59 if($orderInfo['type'] == 3) {
60 $Intermediary = controller('Intermediary','controller'); 60 $Intermediary = controller('Intermediary','controller');
61 $agencyOffer = $Intermediary->agencyOffer($orderInfo['user_id'],$orderInfo['need_id']); 61 $agencyOffer = $Intermediary->agencyOffer($orderInfo['user_id'],$orderInfo['need_id']);
62 - $update['lower_price'] = $agencyOffer['money']; 62 + if(empty($agencyOffer) || empty($agencyOffer['money'])) {
  63 + return 0;
  64 + } else {
  65 + $update['lower_price'] = $agencyOffer['money'];
  66 + }
63 $pay = $order_model->where($where)->update($update); 67 $pay = $order_model->where($where)->update($update);
64 $status = 1; 68 $status = 1;
65 } 69 }