35 lines
655 B
PHP
35 lines
655 B
PHP
<?php
|
|
|
|
namespace app\merchant\service;
|
|
|
|
use app\core\Service;
|
|
use think\admin\extend\CodeExtend;
|
|
use app\merchant\service\MerchantService;
|
|
|
|
/**
|
|
* 商户通道服务
|
|
* Class ProjectService
|
|
* @package app\merchant\service
|
|
*/
|
|
class ProjectService extends Service
|
|
{
|
|
/**
|
|
* 设置默认操作表
|
|
* @var string
|
|
*/
|
|
public $table = 'merchant_project';
|
|
|
|
# 获取商户信息
|
|
public function getInfo($id, $mid)
|
|
{
|
|
$where['id'] = $id;
|
|
|
|
$data = $this->db()->where($where)->find();
|
|
|
|
if ($data && $data['status'] == 1 && $data['mid'] == $mid) {
|
|
return $data;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
} |