提交 32fa02df authored 作者: chengye's avatar chengye

修复settle price为空导致的错误

上级 56401602
...@@ -253,6 +253,10 @@ class Em extends Base ...@@ -253,6 +253,10 @@ class Em extends Base
public function checkEmComplete($em_id){ public function checkEmComplete($em_id){
$em = \app\em\model\Em::with('rule')->where('id','=',$em_id)->find(); $em = \app\em\model\Em::with('rule')->where('id','=',$em_id)->find();
if(!$em || !isset($em->rule)){
return false;
}
if($em->rule->settle_price == 1 || $em->rule->pay_price == 1){ if($em->rule->settle_price == 1 || $em->rule->pay_price == 1){
return false; return false;
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论