REAPI/app/merchant/service/MerchantRelationService.php

32 lines
649 B
PHP
Raw Permalink Normal View History

2024-09-29 15:43:18 +08:00
<?php
namespace app\merchant\service;
use app\core\Service;
use think\admin\extend\CodeExtend;
use app\gateway\service\RedisService;
/**
* 商户商品关联服务
* Class MerchantService
* @package app\merchant\service
*/
class MerchantRelationService extends Service
{
/**
* 设置默认操作表
* @var string
*/
public $table = 'merchant_relation';
# 获取信息
public function getInfo($mid, $product_key)
{
$where['mid'] = $mid;
$where['product_key'] = $product_key;
$where['status'] = 1;
$data = $this->db()->where($where)->find();
return $data;
}
}