init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)

这个提交包含在:
Developer
2026-10-30 10:18:50 +08:00
当前提交 1f3e0ce2f6
共有 9291 个文件被更改,包括 1776674 次插入 和 0 次删除

查看文件

@@ -0,0 +1,68 @@
<?php
namespace Common\Model;
use Think\Model;
class AdminModel extends Model
{
protected $tableName = 'retail_admin';
protected $fields = array(
'id',
'name',
'addtime',
'status',
'last_time',
'password',
'status',
'type',
'partnerid',
'phone',
'juris',
'qq',
);
/** 添加用户
* @param $data
*/
public function addUser($data){
$re = $this->add($data);
return $re;
}
/** 修改用户信息
* @param $map
* @param $data
* @return mixed
*/
public function UpdateUser($map,$data){
$re = $this->where($map)->save($data);
return $re;
}
/**
* @param $map
*/
public function getCount($map){
$cache = $this->where($map)->count();
return $cache;
}
public function getList($map){
$cache = $this->where($map)->select();
return $cache;
}
/**
* @param $map
* @return mixed
*/
public function getFind($map){
$re = $this->where($map)->find();
return $re;
}
/**
* 删除用户
*/
public function delUser($map){
$re = $this->where($map)->delete();
return $re;
}
}