Commit 392e10de by 杨树贤

修复bug

parent 90855e10
...@@ -48,6 +48,7 @@ class ChainApiController extends Controller ...@@ -48,6 +48,7 @@ class ChainApiController extends Controller
'check_content', 'check_content',
'chain_id', 'chain_id',
]); ]);
$map['check_content'] = trim($map['check_content']);
if (empty($map['check_content']) && $map['status'] == 3) { if (empty($map['check_content']) && $map['status'] == 3) {
$this->response(-1, '跟进内容不能为空'); $this->response(-1, '跟进内容不能为空');
} }
......
...@@ -30,7 +30,7 @@ class ChainFilter ...@@ -30,7 +30,7 @@ class ChainFilter
if (!empty($map['supplier_type'])) { if (!empty($map['supplier_type'])) {
$query->where('supplier_type', $map['supplier_type']); $query->where('supplier_type', $map['supplier_type']);
} }
if (!empty($map['check_status'])) { if ((isset($map['check_status']) && $map['check_status'] === '0') || !empty($map['check_status'])) {
$query->where('check_status', $map['check_status']); $query->where('check_status', $map['check_status']);
} }
if ((isset($map['is_entity']) && $map['is_entity'] === '0') || !empty($map['is_entity'])) { if ((isset($map['is_entity']) && $map['is_entity'] === '0') || !empty($map['is_entity'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment