初始化代码
This commit is contained in:
17
app/Common/model/LongbingWeqingWxApp.php
Normal file
17
app/Common/model/LongbingWeqingWxApp.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace app\Common\model;
|
||||
|
||||
use app\BaseModel;
|
||||
|
||||
class LongbingWeqingWxApp extends BaseModel
|
||||
{
|
||||
//定义表名称
|
||||
protected $name = 'account_wxapp';
|
||||
|
||||
public function getApp($filter)
|
||||
{
|
||||
$result = $this->where($filter)->find();
|
||||
if(!empty($result)) $result = $result->toArray();
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user