fix: 微信登录补充保存username和role
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-04-04 07:35:21 +00:00
parent 756444ef2b
commit d12eea7693
10597 changed files with 817047 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 KiB

View File

@@ -0,0 +1,30 @@
import { Jimp, getTestDir } from '@jimp/test-utils';
import configure from '@jimp/custom';
import jpeg from '@jimp/jpeg';
import color from '@jimp/plugin-color';
import resize from '@jimp/plugin-resize';
import threshold from '../src';
const jimp = configure(
{ types: [jpeg], plugins: [threshold, color, resize] },
Jimp
);
describe('Threshold', function() {
this.timeout(15000);
it('defines default threshold for lighter backgrounds', async () => {
const expectedImage = await jimp.read(
getTestDir(__dirname) + '/images/hands_mx200_rp255.jpg'
);
const testImage = await jimp.read(
getTestDir(__dirname) + '/images/hands.jpg'
);
testImage
.threshold({ max: 200, replace: 255 })
.hash()
.should.be.equal(expectedImage.hash());
});
});