修复错误3

This commit is contained in:
mkm 2023-04-19 17:41:57 +08:00
parent f4515aa1e2
commit b45eab1e7a

View File

@ -9,7 +9,7 @@ class StoreMicro extends BaseController
function seach_bar_code($code){
$user = $this->request->userInfo();
$mer_id =Db::name('store_service')->where('uid',$user['uid'])->where('status',1)->value('mer_id');
$find=Db::name('store_product')->where('mer_id',$mer_id)->where('bar_code',$code)->find();
$find=Db::name('product_attr_value')->where('mer_id',$mer_id)->where('bar_code',$code)->find();
if (!$find){
$store_product=Db::name('store_product')->where('product_type',98)->where('bar_code',$code)->find();
if (!$store_product){