Commit fece026d by 杨树贤

共用审核兼容去掉

parent d1b1a68d
......@@ -34,8 +34,8 @@ class SupplierShareApplyApiController extends Controller
$supplierModel = new SupplierChannelModel();
//下面的处理是为了兼容有问题的数据
if (!empty($supplier = $supplierModel->where('supplier_name', $supplierName)->first())) {
$supplier = $supplierModel->where('supplier_name', 'like', "%$supplierName%")->whereNotIn('status',
[SupplierChannelModel::STATUS_DISABLE, SupplierChannelModel::STATUS_REJECT])->first();
// $supplier = $supplierModel->where('supplier_name', 'like', "%$supplierName%")->whereNotIn('status',
// [SupplierChannelModel::STATUS_DISABLE, SupplierChannelModel::STATUS_REJECT])->first();
}
if (empty($supplier)) {
$this->response(-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