| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace app\index\model;
- use\think\Model;
- use think\Session;
- use think\cache\driver\Redis;
- use think\Loader;
- use think\Cache;
- class PlatformUser extends Model
- {
- /**
- * 添加平台验证码
- */
- public function addPlatformUser($data)
- {
- // 添加平台验证码
- $addPlatformUser = $this->insert($data);
- }//end addPlatformUser()
- /**
- * 查询验证码
- */
- public function selectPlatformUser($platformWhere)
- {
- // 添加验证码
- $platform = $this
- ->field('code_key, code_time')
- ->where($platformWhere)
- ->find();
- return [
- 'code' => 1,
- 'msg' => '',
- 'data' => $platform,
- ];
- }//end addCode()
- /**
- * 删除验证码
- */
- public function delPlatformUser($platformWhere)
- {
- // 删除验证码
- $platform = $this
- ->where($platformWhere)
- ->delect();
- }//end delPlatformUser()
- }
|