正在显示
2 个修改的文件
包含
5 行增加
和
1 行删除
@@ -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 | + if(empty($agencyOffer) || empty($agencyOffer['money'])) { | ||
63 | + return 0; | ||
64 | + } else { | ||
62 | $update['lower_price'] = $agencyOffer['money']; | 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 | } |
-
请 注册 或 登录 后发表评论