| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * @package merchant
- *
- * @author xaboy
- * @day 2020-04-28
- *
- *
- */
- namespace app\common\model\user;
- use app\common\model\BaseModel;
- /**
- * Class User
- * @package app\common\model\user
- * @author xaboy
- * @day 2020-04-28
- */
- class UserThird extends BaseModel
- {
- /**
- * @return string
- * @author xaboy
- * @day 2020-03-30
- */
- public static function tablePk(): string
- {
- return 'third_id';
- }
- /**
- * @return string
- * @author xaboy
- * @day 2020-03-30
- */
- public static function tableName(): string
- {
- return 'user_third';
- }
- /*获取信息*/
- public function getDetail($where = [], $field = "*")
- {
- $res = $this->where($where)->field($field)->find()->toArray();
- return $res;
- }
- }
|