Commit 6509b6c2 by 杨树贤

判断账号依据

parent a90855fa
......@@ -103,7 +103,7 @@ class ExternalApiController extends Controller
if (empty($supplierId)) {
$this->externalResponse(-1, '供应商ID不能为空');
}
$supplierAccount = SupplierAccountModel::where('supplier_id', $supplierId)->first();
$supplierAccount = SupplierAccountModel::where('supplier_id', $supplierId)->where('a_status', 1)->first();
if ($supplierAccount) {
$this->externalResponse(0, 'ok', '有芯链账号');
}
......
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