This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/store/model/WxappHelp.php

44 lines
745 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\store\model;
use app\common\model\WxappHelp as WxappHelpModel;
/**
* 小程序帮助中心
* Class WxappHelp
* @package app\store\model
*/
class WxappHelp extends WxappHelpModel
{
/**
* 新增记录
* @param $data
* @return false|int
*/
public function add($data)
{
$data['wxapp_id'] = self::$wxapp_id;
return $this->allowField(true)->save($data);
}
/**
* 更新记录
* @param $data
* @return bool|int
*/
public function edit($data)
{
return $this->allowField(true)->save($data) !== false;
}
/**
* 删除记录
* @return int
*/
public function remove() {
return $this->delete();
}
}