| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | <?phpnamespace Database\Seeders\Frontend;use Database\Seeders\BaseSeeder;use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Hash;use Illuminate\Support\Str;use Txj\Elastic\Facades\Eav;use Txj\Elastic\Facades\ES;class UserWechatOfficialAccountSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'user_id' => ['type' => 'uBigInt', 'title' => '用户id'],            'openid' => ['type' => 'string_60', 'title' => '微信的FormUsername'],            'follow_openid' => ['type' => 'string_60', 'title' => '关注微信获取的openid'],            'unionid' => ['type' => 'string_60', 'title' => '微信unionid'],            'nick' => ['type' => 'string_60', 'title' => '昵称'],            'wx_avatar' => ['type' => 'string', 'title' => '头像', 'is_null' => 1],            'wx_info' => ['type' => 'json', 'title' => '微信返回的json信息', 'is_null' => 1],            'authorizer_appid' => ['type' => 'string', 'title' => '微信授权方appid', 'is_null' => 1],            'authorizer_refresh_token' => ['type' => 'string', 'title' => '微信接口调用凭据刷新令牌', 'is_null' => 1],            'authorization_info' => ['type' => 'string', 'title' => '授权信息', 'is_null' => 1],        ];    }    /**     * 初始化内容     */    public function init()    {    }    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->schema = 'user_wechat_official_account';        $this->title = '用户表微信公众号登录';        $this->start();    }}
 |