12345678910111213141516171819202122232425262728293031 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/3
- * Time: 下午2:25
- */
- namespace common\models;
- //use yii\db\ActiveRecord;
- class UserUr extends Common
- {
- public static function primaryKey(){
- return [''];
- }
- public function rules()
- {
- return [
- ['uid','number'],
- [['uid','rid'],'required'],
- ];
- }
- public function getList($uid)
- {
- return self::find()->andWhere(['uid'=>$uid])->asArray()->all();
- }
- }
|