32 lines
649 B
PHP
32 lines
649 B
PHP
![]() |
<?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;
|
||
|
}
|
||
|
}
|