@taole/newgiftbar 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4578,6 +4578,15 @@ function extraParts(ctx, extra) {
4578
4578
  }
4579
4579
  return parts;
4580
4580
  }
4581
+ function mysteriousParts(ctx, action) {
4582
+ if (action === "open") {
4583
+ return [];
4584
+ }
4585
+ if (ctx && Number(ctx.ismysterious) === 1) {
4586
+ return [["ismysterious", 1]];
4587
+ }
4588
+ return [];
4589
+ }
4581
4590
  function buildPayUrl({ gift, tabId, count, action, ctx, extra }) {
4582
4591
  const giftId = gift.id;
4583
4592
  const type = Number(gift.type);
@@ -4662,7 +4671,8 @@ function buildPayUrl({ gift, tabId, count, action, ctx, extra }) {
4662
4671
  ["question", question],
4663
4672
  ["open", open],
4664
4673
  ...sceneParts(ctx),
4665
- ...extraParts(ctx, extra)
4674
+ ...extraParts(ctx, extra),
4675
+ ...mysteriousParts(ctx, action)
4666
4676
  ])
4667
4677
  );
4668
4678
  }
@@ -4677,7 +4687,8 @@ function buildPayUrl({ gift, tabId, count, action, ctx, extra }) {
4677
4687
  ["question_gift", gift.question_gift || 0],
4678
4688
  ["question", question],
4679
4689
  ["open", open],
4680
- ...extraParts(ctx, extra)
4690
+ ...extraParts(ctx, extra),
4691
+ ...mysteriousParts(ctx, action)
4681
4692
  ])
4682
4693
  );
4683
4694
  }
@@ -4722,7 +4733,8 @@ function buildPayUrl({ gift, tabId, count, action, ctx, extra }) {
4722
4733
  ["question", question],
4723
4734
  ["open", open],
4724
4735
  ...sceneParts(ctx),
4725
- ...extraParts(ctx, extra)
4736
+ ...extraParts(ctx, extra),
4737
+ ...mysteriousParts(ctx, action)
4726
4738
  ])
4727
4739
  );
4728
4740
  }
@@ -4742,7 +4754,7 @@ function buildPayUrl({ gift, tabId, count, action, ctx, extra }) {
4742
4754
  if (type === 24) {
4743
4755
  diamondParts.push(["worth", worth]);
4744
4756
  }
4745
- diamondParts.push(...extraParts(ctx, extra));
4757
+ diamondParts.push(...extraParts(ctx, extra), ...mysteriousParts(ctx, action));
4746
4758
  return diamondGiftMoreUrl(diamondPrefixQuery(diamondParts));
4747
4759
  }
4748
4760
  function mustHaveRequest() {
@@ -22447,6 +22459,9 @@ function instance($$self, $$props, $$invalidate) {
22447
22459
  ...fromList,
22448
22460
  nickname: honorName || fromList.nickname
22449
22461
  });
22462
+ if (opts.setChooseUser && opts.setChooseUser.hidden_uid) {
22463
+ $$invalidate(8, selectUser.hidden_uid = opts.setChooseUser.hidden_uid, selectUser);
22464
+ }
22450
22465
  } else if (opts.setChooseUser) {
22451
22466
  $$invalidate(8, selectUser = {
22452
22467
  ...opts.setChooseUser,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/newgiftbar",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "聊天室 / IM 礼物栏业务组件",
5
5
  "author": "",
6
6
  "module": "./npm/newgiftbar.es.js",