Commit 5d567e7d by 杨树贤

修复供应商搜索

parent fad97de1
...@@ -12,7 +12,8 @@ class ExternalApiController extends Controller ...@@ -12,7 +12,8 @@ class ExternalApiController extends Controller
{ {
public function searchSupplier(Request $request) public function searchSupplier(Request $request)
{ {
$map = $request->only(['supplier_name','channel_uid']); $map = $request->only(['keyword','channel_uid']);
$map['supplier_name'] = $map['keyword'];
if (empty($map['supplier_name'])) { if (empty($map['supplier_name'])) {
$this->externalResponse(-1, '搜索的供应商名称不能为空'); $this->externalResponse(-1, '搜索的供应商名称不能为空');
} }
......
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