-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrss.xml
766 lines (766 loc) · 184 KB
/
rss.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>云小影博客</title>
<subtitle>记录点滴生活</subtitle>
<icon>https://blog.i286.com/images/favicon.ico</icon>
<link>https://blog.i286.com</link>
<author>
<name>云影</name>
</author>
<description>云影的鼠窝又称云影博客(blog.i286.com),搭建于2018年08月20日,仅用于分享资源以及发布一些言论,不定时更新一些影视、壁纸、软件、各类教程、音乐和源代码相关的文章。云影博客不敢承诺每篇文章都很精彩,也不敢承诺每篇文章都是原创,也有部分是从网上转载过来或者收集过来,云影仅可以保存每篇文章都很有阅读价值</description>
<language>zh-CN</language>
<pubDate>Sat, 05 Nov 2022 14:16:28 +0800</pubDate>
<lastBuildDate>Sat, 05 Nov 2022 14:16:28 +0800</lastBuildDate>
<category term="云影,QQ8711973,云影博客,博客,云上的影子,Efar,Efar博客,影视分享,资源分享天地,技术窝点" />
<category term="PHP原创,网络资源" />
<category term="代码日记" />
<item>
<guid isPermalink="true">https://blog.i286.com/article/34d87876.html</guid>
<title>光盘打卡挂机任务网站使用教程</title>
<link>https://blog.i286.com/article/34d87876.html</link>
<category term="教程文档" scheme="https://blog.i286.com/categories/tutorial-document/" />
<category term="挂机" scheme="https://blog.i286.com/tags/%E6%8C%82%E6%9C%BA/" />
<category term="光盘打卡" scheme="https://blog.i286.com/tags/%E5%85%89%E7%9B%98%E6%89%93%E5%8D%A1/" />
<pubDate>Sat, 05 Nov 2022 14:16:28 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p>一年一度的光盘打卡活动又来了,在去年的这段时间,我已经发布过一次有关 “光盘打卡” 小程序的脚本使用教程,那时候做的比较简单,又要配置 python 环境,又要打开电脑挂脚本啥的,非常的不方便,但是最近提前做了准备,为这次的光盘打卡活动写了一个网页挂机程序,可以让你随时随地查询自己的光盘打卡任务情况,无需自己挂机,只需要按照以下的教程,把对应的信息填写到网站上去就行了。</p>
<h1 id="准备工作"><a class="anchor" href="#准备工作">#</a> 准备工作</h1>
<p>本次教程主要为 token 提取教程,分为 windows 系统 (电脑端) 和 IOS 系统 (手机端),为什么要用 windows 系统和 IOS 系统作为电脑端和手机端的代表呢?</p>
<div class="note warning">
<p>目前市面上的安卓手机,基本上都是安卓 10 以上,导致没法 root,对于 http/https 抓包都不友好,结合 windows 系统又大众化,因此使用 windows 系统抓包是最好的选择,当然了,最好的最方便的还是 ios 系统。</p>
</div>
<h1 id="windows系统提取token教程"><a class="anchor" href="#windows系统提取token教程">#</a> windows 系统提取 Token 教程</h1>
<div class="note danger">
<p>因为现在 windows 系统的微信客户端版本对小程序架构进行了重构,导致了没法直接利用抓包软件进行抓包,因此我们需要使用低版本的微信客户端,在这里我的建议是使用 3.5 以下的版本微信客户端</p>
</div>
<details class="primary"><summary>微信3.4下载地址</summary><div>
<p>链接: <span class="exturl" data-url="aHR0cHM6Ly9wYW4uYmFpZHUuY29tL3MvMWdYZTZCTFRJSEhsQTh5bS16c0dOS0E=">https://pan.baidu.com/s/1gXe6BLTIHHlA8ym-zsGNKA</span> 密码: 4f31<br />
-- 来自百度网盘超级会员 V6 的分享</p>
</div></details>
<p>利用 fiddler 进行抓包</p>
<p>参考博文:<a href="https://blog.i286.com/article/a8ee8d33.html">https://blog.i286.com/article/a8ee8d33.html</a></p>
<div class="note warning">
<p>只需要获取 token 就好了</p>
</div>
<h2 id="下载了34版本的微信还是没法抓取小程序的数据包解决方法"><a class="anchor" href="#下载了34版本的微信还是没法抓取小程序的数据包解决方法">#</a> 下载了 3.4 版本的微信还是没法抓取小程序的数据包解决方法</h2>
<p>因为我们知道,3.5 之后微信对小程序进行了重构,因此我们在使用高版本的微信的时候,在打开小程序时,会在微信某个目录生成一些文件,因为这些文件导致我们没法抓取数据</p>
<h3 id="步骤1"><a class="anchor" href="#步骤1">#</a> 步骤 1</h3>
<p>首先打开电脑微信,并任意打开一个微信小程序页面,打开之后呢,启动任务管理器,找到小程序运行文件,并右键打开文件所在目录</p>
<p><img data-src="https://image.i286.com/images/20221105/w1.png" alt="任务管理器" /></p>
<h3 id="步骤2"><a class="anchor" href="#步骤2">#</a> 步骤 2</h3>
<p>打开小程序对应的目录文件,接着在上方的地址栏目录中找到 Plugins 目录的下级文件夹(每个小程序对应的文件夹目录可能也会不同,这里以 WMPFRuntime 为例)</p>
<p><img data-src="https://image.i286.com/images/20221105/w2.png" alt="文件目录1" /></p>
<h3 id="步骤3"><a class="anchor" href="#步骤3">#</a> 步骤 3</h3>
<p>关闭微信,删除该目录下所有内容,再重新打开 3.4 版本的微信进行抓包</p>
<p><img data-src="https://image.i286.com/images/20221105/w3.png" alt="删除目录界面" /></p>
<h1 id="ios系统提取token教程"><a class="anchor" href="#ios系统提取token教程">#</a> ios 系统提取 token 教程</h1>
<p>IOS 相对来说是非常简单的,只需要去 Apple Store 下载<span class="red"> Stream</span> 这个软件,按照下方视频教程,进行操作。</p>
<h2 id="视频教程"><a class="anchor" href="#视频教程">#</a> 视频教程</h2>
<p><div class="media-container"><div class="player" data-type="video" data-src='[{"name":"教程","url":"https://image.i286.com/videos/1667648571002852.mp4"}]'></div></div></p>
<h1 id="将token提交到挂机平台"><a class="anchor" href="#将token提交到挂机平台">#</a> 将 token 提交到挂机平台</h1>
<p>网址:<span class="label red"><span class="exturl" data-url="aHR0cDovL2NwLmkyODYuY29t">http://cp.i286.com</span></span><br />
<img data-src="https://image.i286.com/images/20221105/1.png" alt="网站界面" /></p>
<p>进入网站之后<br />
<mark>第一步</mark>就是要点击 &quot;添加 Token&quot;</p>
<p><img data-src="https://image.i286.com/images/20221105/2.png" alt="添加token界面" /></p>
<p><mark>第二步</mark>填写信息,<ins class="dot">查询账号</ins> 相当于一个查询密码,自定义的,可以自由设置,必须要填写,<ins class="dot">必须要记住</ins>,方便后续查询日志</p>
<p><img data-src="https://image.i286.com/images/20221105/3.png" alt="添加token,填写信息" /></p>
<p>填写完信息后,<span class="red">再</span>点一次 &quot;添加 token&quot;,随后会提示添加成功或添加失败(有失败原因)</p>
<p><mark>第三步</mark>查询自己的信息</p>
<p>点击 “查询”,跳转到首页(查询页)</p>
<p>输入你刚刚设定的查询账号,再点一次 “查询” [这一行的步骤可能可以省略]</p>
<p><img data-src="https://image.i286.com/images/20221105/4.png" alt="查询结果" /></p>
<p>在这里,你可以查看任务执行情况,运行日志,实时能量日志(官方日志),用户实时信息(可以查看当前余额和能量)</p>
<p><ins class="dot">祝你使用愉快!</ins></p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/a8ee8d33.html</guid>
<title>光盘打卡小程序自动打卡脚本 python</title>
<link>https://blog.i286.com/article/a8ee8d33.html</link>
<category term="教程文档" scheme="https://blog.i286.com/categories/tutorial-document/" />
<category term="python" scheme="https://blog.i286.com/tags/python/" />
<category term="脚本" scheme="https://blog.i286.com/tags/%E8%84%9A%E6%9C%AC/" />
<pubDate>Sun, 14 Nov 2021 20:00:07 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p>应学校要求,餐后要去小程序进行光盘打卡,起初想做这个脚本很久的了,但是考虑到学时问题就搁置了,直到这两天得知,可以有学时,因此,就去把这个脚本搞出来并使用了,使用方法比较简单,接下来会一一教学</p>
<h1 id="准备工作"><a class="anchor" href="#准备工作">#</a> 准备工作</h1>
<p>windows 系统 (mac 考虑到不够大众话就不弄了)、fiddler、python3.7+、电脑版微信最新版 (可以启动小程序的就行)</p>
<p>文末会附上所需要的文件</p>
<h1 id="安装和配置"><a class="anchor" href="#安装和配置">#</a> 安装和配置</h1>
<p>安装 python 教程</p>
<p><img data-src="https://image.i286.com/images/20211115/1.png" alt="步骤1" /></p>
<div class="note warning">
<p>务必勾选 Add Python 3.7 to PATH</p>
</div>
<p>不然你要自己去配置环境变量了</p>
<p><img data-src="https://image.i286.com/images/20211115/2.png" alt="步骤2" /></p>
<p><img data-src="https://image.i286.com/images/20211115/3.png" alt="步骤3" /></p>
<p>安装 requests 模块依赖</p>
<p><img data-src="https://image.i286.com/images/20211115/4.png" alt="步骤4" /></p>
<p>在控制台输入</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>pip <span class="token function">install</span> requests</pre></td></tr></table></figure><p><img data-src="https://image.i286.com/images/20211115/5.png" alt="步骤5" /></p>
<p>安装 Fiddler</p>
<p><img data-src="https://image.i286.com/images/20211115/6.png" alt="步骤6" /></p>
<p><img data-src="https://image.i286.com/images/20211115/7.png" alt="步骤7" /></p>
<p><img data-src="https://image.i286.com/images/20211115/8.png" alt="步骤8" /></p>
<p>配置 Fiddler 配置 HTTPS 证书</p>
<p><img data-src="https://image.i286.com/images/20211115/9.png" alt="步骤9" /></p>
<p><img data-src="https://image.i286.com/images/20211115/10.png" alt="步骤10" /></p>
<p><img data-src="https://image.i286.com/images/20211115/11.png" alt="步骤11" /></p>
<p><img data-src="https://image.i286.com/images/20211115/12.png" alt="步骤12" /></p>
<p><img data-src="https://image.i286.com/images/20211115/13.png" alt="步骤13" /></p>
<p>ok 之后关闭 Fiddler 重新打开</p>
<h1 id="开始抓取数据-获取-token"><a class="anchor" href="#开始抓取数据-获取-token">#</a> 开始抓取数据 获取 token</h1>
<p>登录电脑微信,务必把电脑版微信更新到最新版</p>
<div class="note warning">
<p>建议先在手机上打开一次光盘打卡小程序, 这样就可以在微信电脑短打开了</p>
<p>如果遇到打不开小程序,可以试试退出电脑微信再次登录打开</p>
</div>
<p><img data-src="https://image.i286.com/images/20211115/14.png" alt="步骤14" /></p>
<p>打开小程序后回到 Fiddler</p>
<p><img data-src="https://image.i286.com/images/20211115/15.png" alt="步骤15" /></p>
<p>随便选一个即可,根据图示操作</p>
<p><img data-src="https://image.i286.com/images/20211115/16.png" alt="步骤16" /></p>
<div class="note warning">
<p>务必复制好那串 32 位 token 哦</p>
</div>
<h1 id="修改-platepy"><a class="anchor" href="#修改-platepy">#</a> 修改 <span class="exturl" data-url="aHR0cDovL3BsYXRlLnB5">plate.py</span></h1>
<p>修改打卡脚本,右键 <span class="exturl" data-url="aHR0cDovL3BsYXRlLnB5">plate.py</span> 按图示选择</p>
<p><img data-src="https://image.i286.com/images/20211115/17.png" alt="步骤17" /></p>
<p>打开后拉到最低 更换 token 即可</p>
<p><img data-src="https://image.i286.com/images/20211115/18.png" alt="步骤18" /></p>
<p>最后按 Ctrl+S 保存 或者点左上角 File-&gt;save 保存</p>
<h1 id="验证脚本是否可用"><a class="anchor" href="#验证脚本是否可用">#</a> 验证脚本是否可用</h1>
<p>双击我们修改好的脚本文件即可</p>
<p>脚本窗口最小化即可,已经设定成每两小时自动打卡一次</p>
<p><img data-src="https://image.i286.com/images/20211115/19.png" alt="步骤19" /></p>
<h1 id="功能介绍"><a class="anchor" href="#功能介绍">#</a> 功能介绍</h1>
<p>由于时间有限,匆忙赶出来的,目前实现的功能有:</p>
<ol>
<li>打卡光盘</li>
<li>喂食小光(可以领取能量)</li>
<li>领取小光能量</li>
<li>领取打卡红包</li>
</ol>
<h1 id="所需文件"><a class="anchor" href="#所需文件">#</a> 所需文件</h1>
<ol>
<li>python3.7 安装包 <span class="exturl" data-url="aHR0cHM6Ly93d2EubGFuem91aS5jb20vaVkwVmR3amtiZWI=">点我下载</span></li>
<li>Fiddler <span class="exturl" data-url="aHR0cHM6Ly93d2EubGFuem91aS5jb20vaXNDRXp3amtib2I=">点我下载</span></li>
<li><span class="exturl" data-url="aHR0cDovL3BsYXRlLnB5">plate.py</span> <span class="exturl" data-url="aHR0cHM6Ly93d3cuYWxpeXVuZHJpdmUuY29tL3MvU3dyRlJQRHZLWnY=">点我下载</span></li>
</ol>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/3cfc127e.html</guid>
<title>Mac下使用宝塔面板[Docker容器篇]</title>
<link>https://blog.i286.com/article/3cfc127e.html</link>
<category term="教程文档" scheme="https://blog.i286.com/categories/tutorial-document/" />
<category term="Docker" scheme="https://blog.i286.com/categories/tutorial-document/Docker/" />
<category term="Docker" scheme="https://blog.i286.com/tags/Docker/" />
<category term="Mac" scheme="https://blog.i286.com/tags/Mac/" />
<pubDate>Fri, 16 Jul 2021 13:16:00 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p>作为一个 PHP 开发者,一个好的开发环境必然对自身工作效率有很大的要求。以前在 win 的时候习惯用 phpstudy,一直都在用。小皮官方也不负众望,开发出了 mac 版的 phpstudy,但是不够成熟。我试过用虚拟机,但内存开销太大,不值得,后来得知 Docker 可以有类似于虚拟机的功能。</p>
<h2 id="准备工作"><a class="anchor" href="#准备工作">#</a> 准备工作</h2>
<p>MAC 系统,Docker 最新版【官方下载地址:<span class="exturl" data-url="aHR0cHM6Ly93d3cuZG9ja2VyLmNvbS9nZXQtc3RhcnRlZA=="> 下载桌面版</span>】</p>
<h2 id="过程"><a class="anchor" href="#过程">#</a> 过程</h2>
<p>安装好我们的 Docker 后,我们可以直接在<span class="exturl" data-url="aHR0cHM6Ly9odWIuZG9ja2VyLmNvbS8="> DockerHub</span> (一个类似 GitHub 的平台) 中搜索到我们需要的容器实例。</p>
<h4 id="截图示例"><a class="anchor" href="#截图示例">#</a> 截图示例</h4>
<p><img data-src="https://image.i286.com/images/20210716/1300/iShot2021-07-16%2013.55.54.png" alt="截图" /></p>
<p><img data-src="https://image.i286.com/images/20210716/1300/iShot2021-07-16%2014.00.09.png" alt="截图" /></p>
<p>我们选择第一个,根据他的提示来安装就好了。</p>
<h4 id="小提示"><a class="anchor" href="#小提示">#</a> 小提示</h4>
<p>这里注意的一点是,建议使用桥接模式运行宝塔镜像,除非你的 mac 是打算做服务器才用 Host。</p>
<p>如果你用桥接模式,请务必一次性把所需要的端口都加上,比如 443,8888,3306 那些,不然后续有得你哭的。</p>
<pre><code class="language-sh">docker run -tid --name baota -p 80:80 -p 443:443 -p 8888:8888 -p 888:888 --privileged=true --shm-size=1g --restart always -v ~/wwwroot:/www/wwwroot pch18/baota
</code></pre>
<div class="note warning">
<p>这是我的安装命令</p>
<pre><code class="language-cmd">docker run -tid --name baota -p 80:80 -p 8888:8888 -p 888:888 -p 20:20 -p 21:21 -p 3306:3306 -p 6379:6379 -p 5555:5555 -p 6371:6371 --privileged=true --shm-size=1g --restart always -v ~/wwwroot:/www/wwwroot pch18/baota
</code></pre>
<p>我把 80,8888,888,20,21,3306,6379,5555,6371 端口都开放了,你也可以自己再加</p>
</div>
<p>安装好后,效果图</p>
<p><img data-src="https://image.i286.com/images/20210716/1300/iShot2021-07-16%2014.05.11.png" alt="截图" /></p>
<p><img data-src="https://image.i286.com/images/20210716/1300/iShot2021-07-16%2014.06.16.png" alt="截图" /></p>
<p><img data-src="https://image.i286.com/images/20210716/1300/iShot2021-07-16%2014.06.30.png" alt="截图" /></p>
<p>之后你就可以像服务器一样,操作宝塔啦!</p>
<div class="note danger">
<p>安装实例前请务必确保你所需要的端口没有被占用,检查端口占用方法</p>
<pre><code class="language-sh">lsof -i:端口号
</code></pre>
</div>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/720fc6a2.html</guid>
<title>利用反向代理或者CDN直接绑定域名到gitee pages</title>
<link>https://blog.i286.com/article/720fc6a2.html</link>
<category term="随心" scheme="https://blog.i286.com/categories/myheart/" />
<category term="gitee pages" scheme="https://blog.i286.com/tags/gitee-pages/" />
<category term="github pages" scheme="https://blog.i286.com/tags/github-pages/" />
<pubDate>Mon, 01 Feb 2021 19:00:00 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p>前一段时间云影的 blog 是部署在国外的 GitHub 里的,也开启 Github Pages 服务。当一切顺风顺水的时候,不好的东西也来了,那就是某些 DNS 运营商<s>其实就那三家</s>对该玩意有屏蔽效果,具体表现为可以访问 github 的官网,<span class="exturl" data-url="aHR0cDovL3huLS1naXRodWItdnA3aXNiMDZlazZkZDIzZHRwYXY3Nmh0MTFjZXR5ZDFiOGEuaW8=">就是访问不了你专属的 github.io</span>。于是云影就把项目也部署到国内的开源中国里,也开启了相应的 pages 服务,但是,这玩意居然不能绑定个人域名,如果要绑定必须开启 gitee pages pro 服务,这个服务还不允许个人购买,只提供给付费企业版!这我忍不了了,于是想方设法的都要把我的域名指向到这里。</p>
<h1 id="准备工作"><a class="anchor" href="#准备工作">#</a> 准备工作</h1>
<div class="note warning">
<p>以下工作都是在拥有 gitee 项目并且开启了 gitee pages 服务的基础上操作的</p>
</div>
<p>首先我们要准备一个已经备案的域名,没备案的话用不了国内服务器和或内 CDN<s> 如果你喜欢国外的服务器和 CDN,请无视</s>。</p>
<ol>
<li>
<p>用宝塔作反代。</p>
<p>把我们准备好的域名解析到自己的宝塔里,然后开启反向代理就行了</p>
<p><img data-src="https://image.i286.com/images/f1.jpg" alt="f1" /></p>
<p><img data-src="https://image.i286.com/images/f2.jpg" alt="f2" /></p>
<p>代理目录一定要填 &quot;/&quot;,以表示所有资源都反向代理</p>
</li>
<li>
<p>当你觉得用服务器来做反代有点烧钱且效果不够好的时候,那么使用 CDN 来做回显估计对你来说是不错的选择。</p>
<p>这边使用的是<ins>又拍云</ins>的 CDN 服务作为演示</p>
<ol>
<li>
<p>创建你自己的 CDN 加速服务,名称啥的随便填</p>
</li>
<li>
<p>绑定你的域名到<ins>又拍云</ins></p>
<p><img data-src="https://image.i286.com/images/c1.jpg" alt="c1" /></p>
</li>
<li>
<p>设置源站</p>
<p><img data-src="https://image.i286.com/images/c2.jpg" alt="c2" /></p>
</li>
<li>
<p>设置回源 host</p>
<p><img data-src="https://image.i286.com/images/c3.jpg" alt="c3" /></p>
<div class="note warning">
<p>源站地址和 host 地址务必填写的是同一个地址,因为我们现在都是指向自己的 gitee 项目。</p>
<p>至于开不开启强制 https 个人喜欢,云影的建议是开启的,因为我们专属的 gitee 项目域名就是 https 协议,如果不开启的话第一次访问可能会造成资源丢失</p>
</div>
</li>
</ol>
<p>弄了 CDN 就不需要服务器设置反向代理了,而且 CDN 省钱又能加速。现在加入<ins class="dot">又拍云联盟</ins>还可以免费获得 10G 储存空间和 15GCDN 流量。</p>
<p>附上本站的解析设置情况</p>
<p><img data-src="https://image.i286.com/images/b1.jpg" alt="j1" /></p>
<p><img data-src="https://image.i286.com/images/b2.jpg" alt="b2" /></p>
<p>双线路的效果还是很不错的<s>毕竟东西都是免费的</s></p>
<p><img data-src="https://image.i286.com/images/p1.jpg" alt="p1" /></p>
</li>
</ol>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/b65b4240.html</guid>
<title>2021年支付宝集五福攻略(已过期)</title>
<link>https://blog.i286.com/article/b65b4240.html</link>
<category term="杂七杂八" scheme="https://blog.i286.com/categories/messy/" />
<category term="活动攻略" scheme="https://blog.i286.com/categories/messy/activities/" />
<category term="支付宝集五福" scheme="https://blog.i286.com/categories/messy/activities/zfb-5fu/" />
<category term="支付宝" scheme="https://blog.i286.com/tags/%E6%94%AF%E4%BB%98%E5%AE%9D/" />
<category term="集五福" scheme="https://blog.i286.com/tags/%E9%9B%86%E4%BA%94%E7%A6%8F/" />
<pubDate>Mon, 01 Feb 2021 01:00:00 +0800</pubDate>
<description><![CDATA[ <h1 id="攻略"><a class="anchor" href="#攻略">#</a> 攻略</h1>
<p>一年一度的支付宝集五福活动又来了,今年的奖池是 5 个亿。截止现在 1 点钟,已经有超过 6w 人集齐了五福。</p>
<ol>
<li>
<p><s>扫薇娅图片<ins>必得</ins>万能福</s> BUG 修复了</p>
<p><img data-src="https://image.i286.com/images/zfb/weiya.jpg" alt="薇娅" /></p>
</li>
<li>
<p>扫<ins>海尔</ins>、<ins>蒙牛</ins>、<ins>一汽大众</ins>的 Logo 都可以得福</p>
<p class="gallery"><img data-src="https://image.i286.com/images/zfb/haier.jfif" alt="" title="海尔" /><br />
<img data-src="https://image.i286.com/images/zfb/mengniu.jpg" alt="" title="蒙牛" /><br />
<img data-src="https://image.i286.com/images/zfb/yqdz.jfif" alt="" title="一汽大众" /></p>
<p> </p>
</li>
<li>
<p>支付宝搜索关键词可以获得福卡</p>
<blockquote>
<p>搜索 &quot;消费券&quot; 大概率获得沾沾卡</p>
</blockquote>
<blockquote>
<p>搜索 &quot;蒙牛&quot;、&quot;大众&quot;、&quot;肯德基&quot;、&quot;麦当劳&quot;、&quot;银泰百货&quot;、&quot;滴滴&quot;、&quot;大悦城&quot;、&quot;爱琴海&quot;、&quot;星河&quot;、&quot;砂之船奥莱&quot;、&quot;薇娅&quot; 可以抽福卡</p>
</blockquote>
<blockquote>
<p>支付宝搜索 &quot;商家服务&quot;<br />
支付宝商家服务:支付宝 APP 我的 -- 商家服务 -- 新年福气满满(没有领过收款码的,这个参加不了)</p>
</blockquote>
<div class="note info no-icon">
<p>沾沾卡的机制已经改了,即使对方只有一张敬业福,也会给你显示 3 张福,然后造成干扰,云影的 5 张沾沾卡都沾了空气</p>
</div>
</li>
<li>
<p>扫特殊福字额外领福</p>
<div class="note primary no-icon">
<p>把以下的图片放大,扫商标或者 Logo 都可以获得福卡</p>
</div>
<p><img data-src="https://image.i286.com/images/zfb/f2.jpg" alt="f1" /></p>
<p><img data-src="https://image.i286.com/images/zfb/f1.jpg" alt="f2" /></p>
</li>
<li>
<p>手写福字获得副卡</p>
<p>在集五福主页面进入,自己写福字可以获得两张福卡,每天都可以写</p>
</li>
<li>
<p>每天在手机淘宝 APP 的<ins>芭芭农场</ins>施肥也可以有概率获得福卡</p>
</li>
<li>
<p>在某些指定的 APP 里使用某些功能是可以获得盲盒,也是可以获得福卡的</p>
<p>例如<ins class="dot">网易云</ins> 搜索周深的《望》就可以获得锦鲤,然后抓锦鲤就可以获得福卡了</p>
<div class="note info">
<p>这里要注意的是,务必把那些 APP 都更新到最新版,不然是没有盲盒的</p>
</div>
<p>附上一些 APP 直接领取福卡入口链接:</p>
<p>1、天猫精灵</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1KSU5HX0xJTkc=">https://render.alipay.com/p/c/17yq18lq3slc?source=JING_LING</span></p>
<p>2、飞猪</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1GRUlfWkhV">https://render.alipay.com/p/c/17yq18lq3slc?source=FEI_ZHU</span></p>
<p>3、优酷</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1ZT1VLVV9UVg==">https://render.alipay.com/p/c/17yq18lq3slc?source=YOUKU_TV</span></p>
<p>4、淘票票</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1QSUFPX1BJQU8=">https://render.alipay.com/p/c/17yq18lq3slc?source=PIAO_PIAO</span></p>
<p>5、手机天猫</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1USUFOX01BTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=TIAN_MAO</span></p>
<p>6、考拉</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1LQU9fTEE=">https://render.alipay.com/p/c/17yq18lq3slc?source=KAO_LA</span></p>
<p>7、菜鸟</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1DQUlfTklBTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=CAI_NIAO</span></p>
<p>8、新华社</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1YSU5IVUFfU0hF">https://render.alipay.com/p/c/17yq18lq3slc?source=XINHUA_SHE</span></p>
<p>9、江南百景图</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1CQUlfSklOR1RV">https://render.alipay.com/p/c/17yq18lq3slc?source=BAI_JINGTU</span></p>
<p>10、科创中国</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1LRV9DSFVBTkc=">https://render.alipay.com/p/c/17yq18lq3slc?source=KE_CHUANG</span></p>
<p>11、科技工作者之家</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1LRUpJX1pISUpJQQ==">https://render.alipay.com/p/c/17yq18lq3slc?source=KEJI_ZHIJIA</span></p>
<p>12、上观新闻</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1KSUVGQU5HX1JJQkFP">https://render.alipay.com/p/c/17yq18lq3slc?source=JIEFANG_RIBAO</span></p>
<p>13、新安晚报</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1EQV9XQU4=">https://render.alipay.com/p/c/17yq18lq3slc?source=DA_WAN</span></p>
<p>14、南京紫金山新闻</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1aSUpJTl9TSEFO">https://render.alipay.com/p/c/17yq18lq3slc?source=ZIJIN_SHAN</span></p>
<p>15、中国蓝新闻</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1aSE9OR0dVT19MQU4=">https://render.alipay.com/p/c/17yq18lq3slc?source=ZHONGGUO_LAN</span></p>
<p>16、大河财立方</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1DQUlfTElGQU5H">https://render.alipay.com/p/c/17yq18lq3slc?source=CAI_LIFANG</span></p>
<p>17、正观 APP</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1aSEVOR19HVUFO">https://render.alipay.com/p/c/17yq18lq3slc?source=ZHENG_GUAN</span></p>
<p>18、江西新闻客户端</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1KSUFOR1hJX1hJTldFTg==">https://render.alipay.com/p/c/17yq18lq3slc?source=JIANGXI_XINWEN</span></p>
<p>19、羊城晚报</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1ZQU5HX0NIRU5H">https://render.alipay.com/p/c/17yq18lq3slc?source=YANG_CHENG</span></p>
<p>20、N 视频</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1OQU5fRFU=">https://render.alipay.com/p/c/17yq18lq3slc?source=NAN_DU</span></p>
<p>21、三亚日报</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1TQU5ZQV9SSUJBTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=SANYA_RIBAO</span></p>
<p>22、开屏新闻</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1DSFVOQ0hFTkdfV0FOQkFP">https://render.alipay.com/p/c/17yq18lq3slc?source=CHUNCHENG_WANBAO</span></p>
<p>23、天眼新闻</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1HVUlaSE9VX0RVU0hJQkFP">https://render.alipay.com/p/c/17yq18lq3slc?source=GUIZHOU_DUSHIBAO</span></p>
<p>24、黄河 plus</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1IVUFOR19IRQ==">https://render.alipay.com/p/c/17yq18lq3slc?source=HUANG_HE</span></p>
<p>25、陕西头条</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1TSEFOWElfVE9VVElBTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=SHANXI_TOUTIAO</span></p>
<p>26、新京报</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1YSU5KSU5HX0JBTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=XINJING_BAO</span></p>
<p>27、津云客户端</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1KSU5fWVVO">https://render.alipay.com/p/c/17yq18lq3slc?source=JIN_YUN</span></p>
<p>28、重庆日报</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1DSE9OR19RSU5H">https://render.alipay.com/p/c/17yq18lq3slc?source=CHONG_QING</span></p>
<p>29、龙头新闻</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1MT05HVE9VX1hJTldFTg==">https://render.alipay.com/p/c/17yq18lq3slc?source=LONGTOU_XINWEN</span></p>
<p>30、风口财经</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1GRU5HS09VX0NBSUpJTkc=">https://render.alipay.com/p/c/17yq18lq3slc?source=FENGKOU_CAIJING</span></p>
<p>31、齐鲁晚报</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1RSUxVX1dBTkJBTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=QILU_WANBAO</span></p>
<p>32、国家政务服务平台</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1HVU9XVV9ZVUFO">https://render.alipay.com/p/c/17yq18lq3slc?source=GUOWU_YUAN</span></p>
<p>33、电子社保卡</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1SRU5fU0hF">https://render.alipay.com/p/c/17yq18lq3slc?source=REN_SHE</span></p>
<p>34、医保局</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1ZSV9CQU8=">https://render.alipay.com/p/c/17yq18lq3slc?source=YI_BAO</span></p>
<p>35、豫事办</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1ZVVNISV9CQU4=">https://render.alipay.com/p/c/17yq18lq3slc?source=YUSHI_BAN</span></p>
<p>36、鄂汇办</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1FSFVJX0JBTg==">https://render.alipay.com/p/c/17yq18lq3slc?source=EHUI_BAN</span></p>
<p>37、随申办</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1TVUlTSEVOX0JBTg==">https://render.alipay.com/p/c/17yq18lq3slc?source=SUISHEN_BAN</span></p>
<p>38、深圳交警</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1TSEVOWkhFTl9KSUFPSklORw==">https://render.alipay.com/p/c/17yq18lq3slc?source=SHENZHEN_JIAOJING</span></p>
<p>39、赣服通</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1HQU5GVV9UT05H">https://render.alipay.com/p/c/17yq18lq3slc?source=GANFU_TONG</span></p>
<p>40、安徽税务局</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1BTkhVSV9TSFVJV1U=">https://render.alipay.com/p/c/17yq18lq3slc?source=ANHUI_SHUIWU</span></p>
<p>41、无锡公积金</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1XVVhJX0dPTkdKSUpJTg==">https://render.alipay.com/p/c/17yq18lq3slc?source=WUXI_GONGJIJIN</span></p>
<p>42、上海公积金</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1TSEFOR0hBSV9HT05HSklKSU4=">https://render.alipay.com/p/c/17yq18lq3slc?source=SHANGHAI_GONGJIJIN</span></p>
<p>43、天府通办</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1USUFORlVfVE9ORw==">https://render.alipay.com/p/c/17yq18lq3slc?source=TIANFU_TONG</span></p>
<p>44、青岛大数据局</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1RSU5HREFOX0RBU0hVSlU=">https://render.alipay.com/p/c/17yq18lq3slc?source=QINGDAN_DASHUJU</span></p>
<p>45、皖事通</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1XQU5TSElfVE9ORw==">https://render.alipay.com/p/c/17yq18lq3slc?source=WANSHI_TONG</span></p>
<p>46、闽政通</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1NSU5aSEVOR19UT05H">https://render.alipay.com/p/c/17yq18lq3slc?source=MINZHENG_TONG</span></p>
<p>47、美图秀秀</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1NRUlfVFU=">https://render.alipay.com/p/c/17yq18lq3slc?source=MEI_TU</span></p>
<p>48、美颜相机</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1NRUlfWUFO">https://render.alipay.com/p/c/17yq18lq3slc?source=MEI_YAN</span></p>
<p>49、芒果 TV</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1NQU5HX0dVTw==">https://render.alipay.com/p/c/17yq18lq3slc?source=MANG_GUO</span></p>
<p>50、快手</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1LVUFJX1NIT1U=">https://render.alipay.com/p/c/17yq18lq3slc?source=KUAI_SHOU</span></p>
<p>51、网易云音乐</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1XQU5HWUlfWVVO">https://render.alipay.com/p/c/17yq18lq3slc?source=WANGYI_YUN</span></p>
<p>52、书旗小说</p>
<p><span class="exturl" data-url="aHR0cHM6Ly9yZW5kZXIuYWxpcGF5LmNvbS9wL2MvMTd5cTE4bHEzc2xjP3NvdXJjZT1TSFVfUUk=">https://render.alipay.com/p/c/17yq18lq3slc?source=SHU_QI</span></p>
<p>部分 APP 入口:</p>
<p>1). 闲鱼 APP:首页 -- 热门活动<br />
2). 菜鸟裹裹 APP:首页幻灯片【喜获一张随机五福卡】参与<br />
3). 考拉 APP:我的考拉 -- 卡拉乐园 -- 集五福</p>
</li>
</ol>
<h1 id="小结"><a class="anchor" href="#小结">#</a> 小结</h1>
<p>今年集五福太简单了,云影只花了 10 分钟不到就集好了一套福。因为不懂事,把万能福拿来当<ins>和谐福</ins>用了<s>因为太着急了</s>,现在小号还差敬业福没出来。今年人多,截止完稿,已经有 8w 人集齐了。</p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/d4bdd3a6.html</guid>
<title>记录把hexo搭建在本地并部署到GitHub全过程</title>
<link>https://blog.i286.com/article/d4bdd3a6.html</link>
<category term="教程文档" scheme="https://blog.i286.com/categories/tutorial-document/" />
<category term="博客" scheme="https://blog.i286.com/categories/tutorial-document/blog/" />
<category term="Hexo" scheme="https://blog.i286.com/categories/tutorial-document/blog/hexo/" />
<category term="记录" scheme="https://blog.i286.com/tags/%E8%AE%B0%E5%BD%95/" />
<category term="折腾" scheme="https://blog.i286.com/tags/%E6%8A%98%E8%85%BE/" />
<category term="hexo" scheme="https://blog.i286.com/tags/hexo/" />
<pubDate>Sat, 30 Jan 2021 10:16:00 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p>云影最近不知道什么原因,想把博客搞回来,之前的<span class="label warning"><span class="exturl" data-url="aHR0cDovL2Jsb2cuaWVmYXIuY24="> blog.iefar.cn</span></span> 使用的是 emlog5.3.1 版本,由于这个版本官方不再维护更新,我自己折腾的 fys 主题(破解版)又舍不得丢弃,所以一直不敢升 emlog6.0。而且 emlog5.3.1 版本优化不是很好,可能是我搭载的插件过多,又或许是我用的是腾讯云的学生机,配置带不起来<s>没办法,没钱啊</s> 后来就百度,了解到了可以把纯静态的网页部署到 github,那么我想起了一些纯静态的博客<s>以前也想做,只是觉得麻烦</s> 例如 <ins>Hugo</ins>、<ins>Hexo</ins>、<ins>Jekyll</ins>、<ins>Pelican</ins> 等等,最终在逼乎的建议参考下,选择了<ins> Hexo</ins>。</p>
<h1 id="安装git到windows"><a class="anchor" href="#安装git到windows">#</a> 安装 git 到 Windows</h1>
<p>目前云影只把项目放到 windows 环境,并从本地部署到 git,MAC 的后续可能会更新。</p>
<ol>
<li>
<p>下载 git 到本地 <span class="exturl" data-url="aHR0cHM6Ly9naXQtc2NtLmNvbS8=">https://git-scm.com/</span></p>
</li>
<li>
<p>打开安装包,并一路 next 即可 不懂的可以参考 <span class="exturl" data-url="aHR0cHM6Ly93d3cuY25ibG9ncy5jb20veHVld2Vpc3VveW9uZy9wLzExOTE0MDQ1Lmh0bWw=">windows 系统 Git 安装详解</span></p>
</li>
</ol>
<h1 id="安装nodejs"><a class="anchor" href="#安装nodejs">#</a> 安装 nodeJs</h1>
<ol>
<li>从官网上下载 node.js 安装包 <span class="exturl" data-url="aHR0cDovL25vZGVqcy5jbi9kb3dubG9hZC8=">http://nodejs.cn/download/</span></li>
<li>打开安装包,除了修改安装路径,其余的也是可以一路 next 即可 不懂的可以参考 <span class="exturl" data-url="aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTAyNTUzMTAvYXJ0aWNsZS9kZXRhaWxzLzUyMjA1MTMyP3V0bV9tZWRpdW09ZGlzdHJpYnV0ZS5wY19yZWxldmFudC5ub25lLXRhc2stYmxvZy1CbG9nQ29tbWVuZEZyb21NYWNoaW5lTGVhcm5QYWkyLTEuY29udHJvbCZhbXA7ZGVwdGhfMS11dG1fc291cmNlPWRpc3RyaWJ1dGUucGNfcmVsZXZhbnQubm9uZS10YXNrLWJsb2ctQmxvZ0NvbW1lbmRGcm9tTWFjaGluZUxlYXJuUGFpMi0xLmNvbnRyb2w=">Node.js 入门一安装篇</span></li>
</ol>
<h1 id="安装hexo"><a class="anchor" href="#安装hexo">#</a> 安装 Hexo</h1>
<p>在确保 git 和 node 正常安装完成后,就可以搭建我们的主角 ——<ins>Hexo</ins> 了</p>
<ol>
<li>
<p>在本地新建一个文件夹</p>
<p><img data-src="https://image.i286.com/images/hexo/1.jpg" alt="新建文件夹" /></p>
</li>
<li>
<p>在这个文件夹里右键,点击 Git Here</p>
<p><img data-src="https://image.i286.com/images/hexo/2.jpg" alt="git here" /></p>
</li>
<li>
<p>配置全局的 git 信息,方便以后部署到 github</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token function">git</span> config --global user.name <span class="token string">"GitHub用户名"</span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token function">git</span> config --global user.email <span class="token string">"GitHub邮箱"</span></pre></td></tr></table></figure></li>
<li>
<p>生成 ssh 密钥文件</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>ssh-keygen -t rsa -C "Github邮箱”</pre></td></tr></table></figure></li>
<li>
<p>前往 github 创建个人仓库 <span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL25ldw==">https://github.com/new</span></p>
<div class="note warning">
<ol>
<li>
<p>名字必须是<ins> username.github.io</ins> 这里的<ins class="dot"> username</ins> 指代的是你的 git 用户名</p>
</li>
<li>
<p>权限选择<ins> Public</ins> (公开)</p>
</li>
</ol>
</div>
<p>新建仓库完成后,可以到个人设置添加<span class="label"> ssh keys</span></p>
<p><img data-src="https://image.i286.com/images/hexo/3.jpg" alt="添加sshKeys" /></p>
<p>完了以后我们使用命令</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token function">ssh</span> [email protected]</pre></td></tr></table></figure><p>进行验证,验证结果如下</p>
<p><img data-src="https://image.i286.com/images/hexo/4.jpg" alt="验证结果" /></p>
<p>只有出现这样的界面才算是成功</p>
</li>
<li>
<p>安装 hexo 到本地环境</p>
<p>在你当前文件夹,打开 git 命令行并运行</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token function">npm</span> <span class="token function">install</span> -g hexo</pre></td></tr></table></figure><p>安装 hexo,安装完成结果图</p>
<p><img data-src="https://image.i286.com/images/hexo/5.jpg" alt="安装hexo完成" /></p>
<p>我们输入</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>hexo</pre></td></tr></table></figure><p>查看 hexo 是否正确安装并且能够运行 hexo 命令</p>
<p><img data-src="https://image.i286.com/images/hexo/6.jpg" alt="检验hexo" /></p>
<ol>
<li>
<p>开始初始化 hexo 博客工程</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>hexo init</pre></td></tr></table></figure><p><img data-src="https://image.i286.com/images/hexo/7.jpg" alt="初始化hexo" /></p>
</li>
<li>
<p>编译博客</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>hexo g</pre></td></tr></table></figure><p><img data-src="https://image.i286.com/images/hexo/8.jpg" alt="编译博客" /></p>
</li>
<li>
<p>启动本地服务器对博客进行预览</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>hexo s</pre></td></tr></table></figure><p><img data-src="https://image.i286.com/images/hexo/9.jpg" alt="启动并预览" /></p>
<p>这时候我们可以在浏览器打开<span class="label success"> localhost:4000</span> 就可以访问我们的网站了</p>
<p><img data-src="https://image.i286.com/images/hexo/10.jpg" alt="预览图" /></p>
</li>
<li>
<p>常用的 hexo 命令</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token comment"># 部署到 git 平台或者其他平台</span></pre></td></tr><tr><td data-num="2"></td><td><pre>hexo d</pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token comment"># 清除缓存</span></pre></td></tr><tr><td data-num="4"></td><td><pre>hexo clean</pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token comment"># 升级 hexo </span></pre></td></tr><tr><td data-num="6"></td><td><pre><span class="token function">npm</span> update hexo -g</pre></td></tr><tr><td data-num="7"></td><td><pre><span class="token comment"># 合并使用 例如 清除缓存并编译然后部署到 github</span></pre></td></tr><tr><td data-num="8"></td><td><pre>hexo clean <span class="token operator">&amp;&amp;</span> hexo g <span class="token operator">&amp;&amp;</span> hexo d</pre></td></tr><tr><td data-num="9"></td><td><pre><span class="token comment"># 合并使用 例如 清除缓存并编译然后启动本地服务器</span></pre></td></tr><tr><td data-num="10"></td><td><pre>hexo clean <span class="token operator">&amp;&amp;</span> hexo g <span class="token operator">&amp;&amp;</span> hexo s</pre></td></tr></table></figure><div class="note warning">
<p>个人建议,没必要<span class="label warning"> hexo clean</span> 的时候就不需要运行这个命令了,但是部署到 git 的话,建议还是先清除一下缓存</p>
</div>
</li>
</ol>
</li>
<li>
<p>安装 hexo 主题并修改默认主题</p>
<p>hexo 的主题有很多很多,官方默认的主题是<ins> landscape</ins> ,主流的有:next、yilia、indigo 等等</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token comment"># 这里以 next 主题为例</span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token function">git</span> clone --branch v5.1.2 https://github.com/iissnan/hexo-theme-next themes/next</pre></td></tr></table></figure><p>由于主题一般都比较大,再加上 github 是国外的,可能<ins>克隆</ins>起来比较慢,耐心等待即可</p>
<p><img data-src="https://image.i286.com/images/hexo/12.jpg" alt="等待过程" /></p>
<p>安装完成示例图</p>
<p><img data-src="https://image.i286.com/images/hexo/11.jpg" alt="安装主题完成" /></p>
<p>修改配置文件,你博客根目录的<span class="label">_config.yml</span> 文件</p>
<p><img data-src="https://image.i286.com/images/hexo/13.jpg" alt="_config.yml" /></p>
<p>把 theme 默认的<span class="label"> landscape</span> 改成 next</p>
<figure class="highlight yaml"><figcaption data-lang="YAML"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token key atrule">theme</span><span class="token punctuation">:</span> next</pre></td></tr></table></figure><p><img data-src="https://image.i286.com/images/hexo/14.jpg" alt="next" /></p>
<p>然后重新启动一下我们的本地服务器 建议先清除并编译</p>
<p>如果报以下一样的错误</p>
<p><img data-src="https://image.i286.com/images/hexo/15.jpg" alt="报错" /></p>
<p>这是因为 hexo5.0 把 swig 给删除了,需要手动安装一下</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token function">npm</span> i hexo-renderer-swig</pre></td></tr></table></figure><p>再次访问</p>
<p><img data-src="https://image.i286.com/images/hexo/16.jpg" alt="访问" /></p>
<p>这样我们的主题就安装完成了 更多的内容请参考你使用的主题说明文档</p>
</li>
<li>
<p>部署到 git</p>
<p>在部署之前,我们需要安装 hexo 的部署插件</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token function">npm</span> <span class="token function">install</span> hexo-deployer-git --save</pre></td></tr></table></figure><p>修改网站的<span class="label">_config.yml</span></p>
<p><img data-src="https://image.i286.com/images/hexo/17.jpg" alt="部署1" /></p>
<p>改成这样</p>
<figure class="highlight yaml"><figcaption data-lang="YAML"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token key atrule">deploy</span><span class="token punctuation">:</span></pre></td></tr><tr><td data-num="2"></td><td><pre> <span class="token key atrule">repository</span><span class="token punctuation">:</span> [email protected]<span class="token punctuation">:</span>efarxs/efarxs.github.io.git <span class="token comment">#刚才创建的 github 仓库的 git 地址 这里以我的作为示例,请务必改成你自己的</span></pre></td></tr><tr><td data-num="3"></td><td><pre> <span class="token key atrule">type</span><span class="token punctuation">:</span> git</pre></td></tr><tr><td data-num="4"></td><td><pre> <span class="token key atrule">branch</span><span class="token punctuation">:</span> master</pre></td></tr></table></figure><p>然后重新编译,并执行部署命令</p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>hexo d</pre></td></tr></table></figure><p><img data-src="https://image.i286.com/images/hexo/18.jpg" alt="部署" /></p>
<p>成功部署后,就可以登录 github 的项目路径查看该网站了</p>
<p><span class="exturl" data-url="aHR0cDovL3huLS02cXF2N2kxNG9mb3N5cmIuZ2l0aHViLmlv">http:// 你的用户名.github.io</span></p>
</li>
<li>
<p>安装 hexo-admin 可以给可视化管理文章<s>虽然我不用,哈哈</s></p>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token function">npm</span> <span class="token function">install</span> hexo-admin --save</pre></td></tr></table></figure><p>安装好后重新编译一下,并启动本地服务器,然后浏览器打开<ins> localhost:4000/admin</ins> 就可以进入 hexo-admin 界面了</p>
<p>在这里你可以编辑 / 发布文章,还可以存为草稿</p>
<p><img data-src="https://image.i286.com/images/hexo/19.jpg" alt="hexo-admin" /></p>
<p>具体使用方法可以参考 <span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL2phcmVkbHkvaGV4by1hZG1pbg==">https://github.com/jaredly/hexo-admin</span></p>
</li>
<li>
<p>配置 github Pages 绑定自己的域名到 github</p>
<p>打开你的项目,点击<span class="label"> Settings</span>-&gt;<span class="label">Options</span>,下拉找到 GitHub Pages 配置</p>
<p>默认只需要填写 Custom domain 的值就好,<span class="exturl" data-url="aHR0cDovL3huLS1DTkFNRXVzZXJuYW1lLTIwNHUwNXRpMmRzdms3cXNyejFjZDl1dXk1ZW5rdGV6M2J1MzZsLmdpdGh1Yi5pbw==">需要先把你的域名 CNAME 解析到 username.github.io</span>. 这里的<ins class="dot"> username</ins> 指代的是你的 GitHub 用户名</p>
<p>然后就可以直接用你的域名访问了,不会的可以参考 <span class="exturl" data-url="aHR0cHM6Ly9zZWdtZW50ZmF1bHQuY29tL2EvMTE5MDAwMDAxMTIwMzcxMQ==">GitHub Pages 绑定个人域名</span></p>
</li>
</ol>
<h1 id="小结"><a class="anchor" href="#小结">#</a> 小结</h1>
<p> 以上就是我在搭建 hexo 博客的全过程了,当然后续的配置修改和使用模板完全是根据个人习惯的,这里这是举个例子作为演示。如果你真的想更深入 hexo,可以去<span class="exturl" data-url="aHR0cHM6Ly9oZXhvLmlv"> hexo.io</span> 了解更多关于 hexo 的内容。感谢你的阅览!</p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/bc6c4e07.html</guid>
<title>支付宝转账操作类[php]</title>
<link>https://blog.i286.com/article/bc6c4e07.html</link>
<category term="代码笔记" scheme="https://blog.i286.com/categories/code-notes/" />
<category term="支付宝" scheme="https://blog.i286.com/tags/%E6%94%AF%E4%BB%98%E5%AE%9D/" />
<category term="php" scheme="https://blog.i286.com/tags/php/" />
<category term="代码" scheme="https://blog.i286.com/tags/%E4%BB%A3%E7%A0%81/" />
<pubDate>Fri, 29 Jan 2021 05:32:00 +0800</pubDate>
<description><![CDATA[ <h1 id="代码示例"><a class="anchor" href="#代码示例">#</a> 代码示例</h1>
<figure class="highlight php"><figcaption data-lang="PHP"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> </pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token comment">// | Quotes [没有目标的人生就是张拼图,反之则是蓝图]</span></pre></td></tr><tr><td data-num="4"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token comment">// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )</span></pre></td></tr><tr><td data-num="6"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="7"></td><td><pre><span class="token comment">// | Author: 云影 &lt;[email protected]></span></pre></td></tr><tr><td data-num="8"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="9"></td><td><pre><span class="token comment">// | Date: 2018 年 12 月 16 日</span></pre></td></tr><tr><td data-num="10"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="11"></td><td><pre></pre></td></tr><tr><td data-num="12"></td><td><pre><span class="token comment">// 支付宝转账操作类</span></pre></td></tr><tr><td data-num="13"></td><td><pre><span class="token keyword">class</span> <span class="token class-name">Alit</span></pre></td></tr><tr><td data-num="14"></td><td><pre><span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="15"></td><td><pre> <span class="token keyword">private</span> <span class="token variable">$appId</span> <span class="token operator">=</span> <span class="token string single-quoted-string">''</span><span class="token punctuation">;</span><span class="token comment">//APPID</span></pre></td></tr><tr><td data-num="16"></td><td><pre> <span class="token keyword">private</span> <span class="token variable">$rsaPrivateKey</span> <span class="token operator">=</span> <span class="token string single-quoted-string">''</span><span class="token punctuation">;</span><span class="token comment">// 私钥</span></pre></td></tr><tr><td data-num="17"></td><td><pre> <span class="token keyword">private</span> <span class="token variable">$rsaPublicKey</span> <span class="token operator">=</span> <span class="token string single-quoted-string">''</span><span class="token punctuation">;</span><span class="token comment">// 支付宝公钥</span></pre></td></tr><tr><td data-num="18"></td><td><pre> <span class="token keyword">private</span> <span class="token variable">$payerName</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'云影在线转账小程序'</span><span class="token punctuation">;</span><span class="token comment">// 转账者名称</span></pre></td></tr><tr><td data-num="19"></td><td><pre> <span class="token keyword">private</span> <span class="token variable">$Aop</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="20"></td><td><pre> </pre></td></tr><tr><td data-num="21"></td><td><pre> <span class="token keyword">function</span> <span class="token function">__construct</span><span class="token punctuation">(</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="22"></td><td><pre> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="23"></td><td><pre> <span class="token comment">// 引入支付宝文件</span></pre></td></tr><tr><td data-num="24"></td><td><pre> <span class="token keyword">include_once</span> <span class="token string single-quoted-string">'AopSdk.php'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="25"></td><td><pre> </pre></td></tr><tr><td data-num="26"></td><td><pre> <span class="token comment">// 实例化</span></pre></td></tr><tr><td data-num="27"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name class-name-fully-qualified"><span class="token punctuation">\</span>AopClient</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="28"></td><td><pre> <span class="token comment">// 配置信息</span></pre></td></tr><tr><td data-num="29"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">gatewayUrl</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'https://openapi.alipay.com/gateway.do'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="30"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">appId</span> <span class="token operator">=</span> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">appId</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="31"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">rsaPrivateKey</span> <span class="token operator">=</span> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">rsaPrivateKey</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="32"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">alipayrsaPublicKey</span><span class="token operator">=</span><span class="token variable">$this</span><span class="token operator">-></span><span class="token property">rsaPublicKey</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="33"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">apiVersion</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'1.0'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="34"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">signType</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'RSA2'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="35"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">postCharset</span><span class="token operator">=</span><span class="token string single-quoted-string">'UTF-8'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="36"></td><td><pre> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token property">format</span><span class="token operator">=</span><span class="token string single-quoted-string">'json'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="37"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="38"></td><td><pre> </pre></td></tr><tr><td data-num="39"></td><td><pre> <span class="token comment">/**</pre></td></tr><tr><td data-num="40"></td><td><pre> * 单笔转账到支付宝</pre></td></tr><tr><td data-num="41"></td><td><pre> * @param unknown $orderId</pre></td></tr><tr><td data-num="42"></td><td><pre> * @param unknown $payAccount</pre></td></tr><tr><td data-num="43"></td><td><pre> * @param unknown $payAname</pre></td></tr><tr><td data-num="44"></td><td><pre> * @param unknown $payAmount</pre></td></tr><tr><td data-num="45"></td><td><pre> * @param unknown $payMemo</pre></td></tr><tr><td data-num="46"></td><td><pre> */</span></pre></td></tr><tr><td data-num="47"></td><td><pre> <span class="token keyword">public</span> <span class="token keyword">function</span> <span class="token function">Transfer</span><span class="token punctuation">(</span><span class="token variable">$orderId</span><span class="token punctuation">,</span><span class="token variable">$payAccount</span><span class="token punctuation">,</span><span class="token variable">$payName</span><span class="token punctuation">,</span><span class="token variable">$payAmount</span><span class="token punctuation">,</span><span class="token variable">$payMemo</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="48"></td><td><pre> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="49"></td><td><pre> <span class="token comment">// 导入请求</span></pre></td></tr><tr><td data-num="50"></td><td><pre> <span class="token variable">$request</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name class-name-fully-qualified"><span class="token punctuation">\</span>AlipayFundTransToaccountTransferRequest</span> <span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="51"></td><td><pre> <span class="token variable">$request</span><span class="token operator">-></span><span class="token function">setBizContent</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"&#123;"</span> <span class="token operator">.</span></pre></td></tr><tr><td data-num="52"></td><td><pre> <span class="token string double-quoted-string">"\"out_biz_no\":\""</span><span class="token operator">.</span><span class="token variable">$orderId</span><span class="token operator">.</span><span class="token string double-quoted-string">"\","</span> <span class="token operator">.</span><span class="token comment">// 商户生成订单号</span></pre></td></tr><tr><td data-num="53"></td><td><pre> <span class="token string double-quoted-string">"\"payee_type\":\"ALIPAY_LOGONID\","</span> <span class="token operator">.</span><span class="token comment">// 收款方支付宝账号类型</span></pre></td></tr><tr><td data-num="54"></td><td><pre> <span class="token string double-quoted-string">"\"payee_account\":\""</span><span class="token operator">.</span><span class="token variable">$payAccount</span><span class="token operator">.</span><span class="token string double-quoted-string">"\","</span> <span class="token operator">.</span><span class="token comment">// 收款方账号</span></pre></td></tr><tr><td data-num="55"></td><td><pre> <span class="token string double-quoted-string">"\"amount\":\""</span><span class="token operator">.</span><span class="token variable">$payAmount</span><span class="token operator">.</span><span class="token string double-quoted-string">"\","</span> <span class="token operator">.</span><span class="token comment">// 总金额</span></pre></td></tr><tr><td data-num="56"></td><td><pre> <span class="token string double-quoted-string">"\"payer_show_name\":\""</span><span class="token operator">.</span><span class="token variable">$this</span><span class="token operator">-></span><span class="token property">payerName</span><span class="token operator">.</span><span class="token string double-quoted-string">"\","</span> <span class="token operator">.</span><span class="token comment">// 付款方账户</span></pre></td></tr><tr><td data-num="57"></td><td><pre> <span class="token string double-quoted-string">"\"payee_real_name\":\""</span><span class="token operator">.</span><span class="token variable">$payName</span><span class="token operator">.</span><span class="token string double-quoted-string">"\","</span> <span class="token operator">.</span><span class="token comment">// 收款方姓名</span></pre></td></tr><tr><td data-num="58"></td><td><pre> <span class="token string double-quoted-string">"\"remark\":\""</span><span class="token operator">.</span><span class="token variable">$payMemo</span><span class="token operator">.</span><span class="token string double-quoted-string">"\""</span> <span class="token operator">.</span><span class="token comment">// 转账备注</span></pre></td></tr><tr><td data-num="59"></td><td><pre> <span class="token string double-quoted-string">"&#125;"</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="60"></td><td><pre> <span class="token variable">$result</span> <span class="token operator">=</span> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token variable">$request</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="61"></td><td><pre> </pre></td></tr><tr><td data-num="62"></td><td><pre> <span class="token variable">$responseNode</span> <span class="token operator">=</span> <span class="token function">str_replace</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"."</span><span class="token punctuation">,</span> <span class="token string double-quoted-string">"_"</span><span class="token punctuation">,</span> <span class="token variable">$request</span><span class="token operator">-></span><span class="token function">getApiMethodName</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token operator">.</span> <span class="token string double-quoted-string">"_response"</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="63"></td><td><pre> <span class="token variable">$resultCode</span> <span class="token operator">=</span> <span class="token variable">$result</span><span class="token operator">-></span><span class="token variable">$responseNode</span><span class="token operator">-></span><span class="token property">code</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="64"></td><td><pre> <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">empty</span><span class="token punctuation">(</span><span class="token variable">$resultCode</span><span class="token punctuation">)</span><span class="token operator">&amp;&amp;</span><span class="token variable">$resultCode</span> <span class="token operator">==</span> <span class="token number">10000</span><span class="token punctuation">)</span><span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="65"></td><td><pre> <span class="token keyword">return</span> <span class="token constant boolean">true</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="66"></td><td><pre> <span class="token punctuation">&#125;</span> <span class="token keyword">else</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="67"></td><td><pre> <span class="token keyword">return</span> <span class="token variable">$result</span><span class="token operator">-></span><span class="token variable">$responseNode</span><span class="token operator">-></span><span class="token property">sub_msg</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="68"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="69"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="70"></td><td><pre> </pre></td></tr><tr><td data-num="71"></td><td><pre> <span class="token comment">/**</pre></td></tr><tr><td data-num="72"></td><td><pre> * 查单</pre></td></tr><tr><td data-num="73"></td><td><pre> * @param unknown $orderId 商户生成的订单号</pre></td></tr><tr><td data-num="74"></td><td><pre> */</span></pre></td></tr><tr><td data-num="75"></td><td><pre> <span class="token keyword">public</span> <span class="token keyword">function</span> <span class="token function">Query</span><span class="token punctuation">(</span><span class="token variable">$orderId</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="76"></td><td><pre> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="77"></td><td><pre> <span class="token comment">// 导入请求</span></pre></td></tr><tr><td data-num="78"></td><td><pre> <span class="token variable">$request</span> <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name class-name-fully-qualified"><span class="token punctuation">\</span>AlipayFundTransOrderQueryRequest</span> <span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="79"></td><td><pre> <span class="token variable">$request</span><span class="token operator">-></span><span class="token function">setBizContent</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"&#123;"</span> <span class="token operator">.</span></pre></td></tr><tr><td data-num="80"></td><td><pre> <span class="token string double-quoted-string">"\"out_biz_no\":\""</span> <span class="token operator">.</span> <span class="token variable">$orderId</span> <span class="token operator">.</span> <span class="token string double-quoted-string">"\","</span> <span class="token operator">.</span></pre></td></tr><tr><td data-num="81"></td><td><pre> <span class="token string double-quoted-string">" &#125;"</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="82"></td><td><pre> <span class="token comment">/*$request->setBizContent("&#123;" .</pre></td></tr><tr><td data-num="83"></td><td><pre> "\"out_biz_no\":\"3142321423432\"," .</pre></td></tr><tr><td data-num="84"></td><td><pre> "\"order_id\":\"20160627110070001502260006780837\"" .</pre></td></tr><tr><td data-num="85"></td><td><pre> " &#125;");*/</span></pre></td></tr><tr><td data-num="86"></td><td><pre> <span class="token variable">$result</span> <span class="token operator">=</span> <span class="token variable">$this</span><span class="token operator">-></span><span class="token property">Aop</span><span class="token operator">-></span><span class="token function">execute</span><span class="token punctuation">(</span><span class="token variable">$request</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="87"></td><td><pre> <span class="token variable">$responseNode</span> <span class="token operator">=</span> <span class="token function">str_replace</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"."</span><span class="token punctuation">,</span> <span class="token string double-quoted-string">"_"</span><span class="token punctuation">,</span> <span class="token variable">$request</span><span class="token operator">-></span><span class="token function">getApiMethodName</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token operator">.</span> <span class="token string double-quoted-string">"_response"</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="88"></td><td><pre> <span class="token variable">$resultCode</span> <span class="token operator">=</span> <span class="token variable">$result</span><span class="token operator">-></span><span class="token variable">$responseNode</span><span class="token operator">-></span><span class="token property">code</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="89"></td><td><pre> <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">empty</span><span class="token punctuation">(</span><span class="token variable">$resultCode</span><span class="token punctuation">)</span><span class="token operator">&amp;&amp;</span><span class="token variable">$resultCode</span> <span class="token operator">==</span> <span class="token number">10000</span><span class="token punctuation">)</span><span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="90"></td><td><pre> <span class="token variable">$res_arr</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'code'</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'0'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="91"></td><td><pre> <span class="token variable">$res_arr</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'data'</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token variable">$result</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="92"></td><td><pre> <span class="token punctuation">&#125;</span> <span class="token keyword">else</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="93"></td><td><pre> <span class="token variable">$res_arr</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'code'</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token string single-quoted-string">'-1'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="94"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="95"></td><td><pre> <span class="token keyword">return</span> <span class="token variable">$res_arr</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="96"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="97"></td><td><pre> </pre></td></tr><tr><td data-num="98"></td><td><pre> <span class="token comment">// 保存日志 自行发挥</span></pre></td></tr><tr><td data-num="99"></td><td><pre> <span class="token keyword">private</span> <span class="token keyword">function</span> <span class="token function">SaveLog</span><span class="token punctuation">(</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="100"></td><td><pre> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="101"></td><td><pre> </pre></td></tr><tr><td data-num="102"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="103"></td><td><pre><span class="token punctuation">&#125;</span></span></pre></td></tr></table></figure><div class="note warning">
<p>请配合支付宝 SDK 食用</p>
<p>云影只是集成了转账和查单功能</p>
</div>
<p>附上官方 SDK 源码</p>
<p><ins class="danger"><span class="exturl" data-url="aHR0cHM6Ly93d2EubGFuem91cy5jb20vaUh3Sk1sMDg4Y2o=">源码</span></ins></p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/c340ae76.html</guid>
<title>一款简约的跳转页源码</title>
<link>https://blog.i286.com/article/c340ae76.html</link>
<category term="网站源码" scheme="https://blog.i286.com/categories/sites-code/" />
<category term="源码" scheme="https://blog.i286.com/tags/%E6%BA%90%E7%A0%81/" />
<category term="html" scheme="https://blog.i286.com/tags/html/" />
<pubDate>Fri, 29 Jan 2021 05:16:01 +0800</pubDate>
<description><![CDATA[ <h1 id="演示效果图"><a class="anchor" href="#演示效果图">#</a> 演示效果图</h1>
<p><img data-src="https://image.i286.com/images/tzurl.png" alt="演示" /></p>
<h1 id="源代码"><a class="anchor" href="#源代码">#</a> 源代码</h1>
<figure class="highlight php"><figcaption data-lang="PHP"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> </pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token comment">// | Quotes [没有目标的人生就是张拼图,反之则是蓝图]</span></pre></td></tr><tr><td data-num="4"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token comment">// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )</span></pre></td></tr><tr><td data-num="6"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="7"></td><td><pre><span class="token comment">// | Author: 云影 &lt;[email protected]></span></pre></td></tr><tr><td data-num="8"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="9"></td><td><pre><span class="token comment">// | Date: 2018 年 8 月 26 日</span></pre></td></tr><tr><td data-num="10"></td><td><pre><span class="token comment">// +----------------------------------------------------------------------</span></pre></td></tr><tr><td data-num="11"></td><td><pre><span class="token function">error_reporting</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="12"></td><td><pre><span class="token variable">$param</span> <span class="token operator">=</span> <span class="token variable">$_SERVER</span><span class="token punctuation">[</span><span class="token string single-quoted-string">'QUERY_STRING'</span><span class="token punctuation">]</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="13"></td><td><pre><span class="token delimiter important">?></span></span></pre></td></tr><tr><td data-num="14"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>head</span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="15"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">http-equiv</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>Content-Type<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>text/html; charset=UTF-8<span class="token punctuation">"</span></span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="16"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">http-equiv</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>refresh<span class="token punctuation">"</span></span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>1;url=<span class="token punctuation">'</span><span class="token php language-php"><span class="token delimiter important">&lt;?php</span> <span class="token keyword">echo</span> <span class="token variable">$param</span><span class="token punctuation">;</span><span class="token delimiter important">?></span></span><span class="token punctuation">'</span>;<span class="token punctuation">"</span></span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="17"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>title</span><span class="token punctuation">></span></span>页面加载中,请稍候...<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>title</span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="18"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>style</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>text/css<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token style"><span class="token language-css"></pre></td></tr><tr><td data-num="19"></td><td><pre><span class="token selector">html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="20"></td><td><pre> <span class="token property">margin</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="21"></td><td><pre> <span class="token property">padding</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="22"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="23"></td><td><pre> <span class="token property">font-size</span><span class="token punctuation">:</span> 100%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="24"></td><td><pre> <span class="token property">font</span><span class="token punctuation">:</span> inherit<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="25"></td><td><pre> <span class="token property">vertical-align</span><span class="token punctuation">:</span> baseline</pre></td></tr><tr><td data-num="26"></td><td><pre><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="27"></td><td><pre></pre></td></tr><tr><td data-num="28"></td><td><pre><span class="token selector">body</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="29"></td><td><pre> <span class="token property">background</span><span class="token punctuation">:</span> #3498db<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="30"></td><td><pre><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="31"></td><td><pre></pre></td></tr><tr><td data-num="32"></td><td><pre><span class="token selector">#loader-container</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="33"></td><td><pre> <span class="token property">width</span><span class="token punctuation">:</span> 188px<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="34"></td><td><pre> <span class="token property">height</span><span class="token punctuation">:</span> 188px<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="35"></td><td><pre> <span class="token property">color</span><span class="token punctuation">:</span> white<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="36"></td><td><pre> <span class="token property">margin</span><span class="token punctuation">:</span> 0 auto<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="37"></td><td><pre> <span class="token property">position</span><span class="token punctuation">:</span> absolute<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="38"></td><td><pre> <span class="token property">top</span><span class="token punctuation">:</span> 50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="39"></td><td><pre> <span class="token property">left</span><span class="token punctuation">:</span> 50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="40"></td><td><pre> <span class="token property">margin-right</span><span class="token punctuation">:</span> -50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="41"></td><td><pre> <span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">translate</span><span class="token punctuation">(</span>-50%<span class="token punctuation">,</span> -50%<span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="42"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 5px solid #3498db<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="43"></td><td><pre> <span class="token property">border-radius</span><span class="token punctuation">:</span> 50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="44"></td><td><pre> <span class="token property">-webkit-animation</span><span class="token punctuation">:</span> borderScale 1s infinite ease-in-out<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="45"></td><td><pre> <span class="token property">animation</span><span class="token punctuation">:</span> borderScale 1s infinite ease-in-out<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="46"></td><td><pre><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="47"></td><td><pre></pre></td></tr><tr><td data-num="48"></td><td><pre><span class="token selector">#loadingText</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="49"></td><td><pre> <span class="token property">font-family</span><span class="token punctuation">:</span> <span class="token string">'Raleway'</span><span class="token punctuation">,</span> sans-serif<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="50"></td><td><pre> <span class="token property">font-size</span><span class="token punctuation">:</span> 1.4em<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="51"></td><td><pre> <span class="token property">position</span><span class="token punctuation">:</span> absolute<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="52"></td><td><pre> <span class="token property">top</span><span class="token punctuation">:</span> 50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="53"></td><td><pre> <span class="token property">left</span><span class="token punctuation">:</span> 50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="54"></td><td><pre> <span class="token property">margin-right</span><span class="token punctuation">:</span> -50%<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="55"></td><td><pre> <span class="token property">transform</span><span class="token punctuation">:</span> <span class="token function">translate</span><span class="token punctuation">(</span>-50%<span class="token punctuation">,</span> -50%<span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="56"></td><td><pre><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="57"></td><td><pre></pre></td></tr><tr><td data-num="58"></td><td><pre><span class="token atrule"><span class="token rule">@-webkit-keyframes</span> borderScale</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="59"></td><td><pre> <span class="token selector">0%</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="60"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 5px solid white<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="61"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="62"></td><td><pre></pre></td></tr><tr><td data-num="63"></td><td><pre> <span class="token selector">50%</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="64"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 25px solid #3498db<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="65"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="66"></td><td><pre></pre></td></tr><tr><td data-num="67"></td><td><pre> <span class="token selector">100%</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="68"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 5px solid white<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="69"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="70"></td><td><pre><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="71"></td><td><pre></pre></td></tr><tr><td data-num="72"></td><td><pre><span class="token atrule"><span class="token rule">@keyframes</span> borderScale</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="73"></td><td><pre> <span class="token selector">0%</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="74"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 5px solid white<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="75"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="76"></td><td><pre></pre></td></tr><tr><td data-num="77"></td><td><pre> <span class="token selector">50%</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="78"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 25px solid #3498db<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="79"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="80"></td><td><pre></pre></td></tr><tr><td data-num="81"></td><td><pre> <span class="token selector">100%</span> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="82"></td><td><pre> <span class="token property">border</span><span class="token punctuation">:</span> 5px solid white<span class="token punctuation">;</span></pre></td></tr><tr><td data-num="83"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="84"></td><td><pre><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="85"></td><td><pre></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>style</span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="86"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>head</span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="87"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>body</span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="88"></td><td><pre></pre></td></tr><tr><td data-num="89"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>loader-container<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>loadingText<span class="token punctuation">"</span></span><span class="token punctuation">></span></span>页面加载中...<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span></pre></td></tr><tr><td data-num="90"></td><td><pre></pre></td></tr><tr><td data-num="91"></td><td><pre></pre></td></tr><tr><td data-num="92"></td><td><pre><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>body</span><span class="token punctuation">></span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">></span></span></pre></td></tr></table></figure> ]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/2ce7aea0.html</guid>
<title>一个好玩的音乐网站源码</title>
<link>https://blog.i286.com/article/2ce7aea0.html</link>
<category term="网站源码" scheme="https://blog.i286.com/categories/sites-code/" />
<category term="源码" scheme="https://blog.i286.com/tags/%E6%BA%90%E7%A0%81/" />
<category term="音乐" scheme="https://blog.i286.com/tags/%E9%9F%B3%E4%B9%90/" />
<pubDate>Fri, 29 Jan 2021 05:12:01 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p>本程序基于 TweenMax 高性能动画框架编写,可以实现音乐律动跟随鼠标移动而变化</p>
<h1 id="演示截图"><a class="anchor" href="#演示截图">#</a> 演示截图</h1>
<p><img data-src="https://image.i286.com/images/music.png" alt="截图" /></p>
<p><img data-src="https://image.i286.com/images/music2.png" alt="截图" /></p>
<h1 id="源码说明"><a class="anchor" href="#源码说明">#</a> 源码说明</h1>
<p>演示站:<span class="exturl" data-url="aHR0cDovL3BsYXkuaTI4Ni5jb20=">play.i286.com</span></p>
<div class="note warning">
<p>使用前建议先改版权,在<span class="label warning"> index.html</span> 文件里面</p>
</div>
<p>一个很简单的网页,平时用来玩玩也是可以很快乐的!</p>
<p>源码下载链接:<span class="exturl" data-url="aHR0cHM6Ly93d2EubGFuem91cy5jb20vaUlDdThsMDg3amE=">https://wwa.lanzous.com/iICu8l087ja</span></p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/9dae51e0.html</guid>
<title>申请当面付流程+配置教程</title>
<link>https://blog.i286.com/article/9dae51e0.html</link>
<category term="随心" scheme="https://blog.i286.com/categories/myheart/" />
<category term="支付宝" scheme="https://blog.i286.com/tags/%E6%94%AF%E4%BB%98%E5%AE%9D/" />
<category term="当面付" scheme="https://blog.i286.com/tags/%E5%BD%93%E9%9D%A2%E4%BB%98/" />
<category term="教程" scheme="https://blog.i286.com/tags/%E6%95%99%E7%A8%8B/" />
<pubDate>Tue, 26 Jan 2021 13:26:02 +0800</pubDate>
<description><![CDATA[ <h1 id="准备材料-申请条件"><a class="anchor" href="#准备材料-申请条件">#</a> 准备材料 &amp; 申请条件</h1>
<ol>
<li>支持的账户类型:经过实名认证的个人 / 企业支付宝账户</li>
<li>签约申请提交资料:<br />
1) 经营场所照片<br />
a. 有门头照的经营场所,需提供门头照;<br />
b. 无门头照的经营场所,需提供内景照或场景照<br />
2) 同名的营业执照(即与支付宝账户认证名称一致)<br />
a. 若签约时未提供同名营业执照,可申请 “基础版”,商家收款有限额,可长期使用。<br />
b. 若签约时提供了同名营业执照,或者签约后补充了同名营业执照,商家收款无限额。</li>
</ol>
<p><span class="label danger">根据相关要求,新签该产品的商家,在未满 90 日或连续交易未满 30 日期间,通过该产品收款的资金将于次日结算(T+1)。</span></p>
<h1 id="申请步骤"><a class="anchor" href="#申请步骤">#</a> 申请步骤</h1>
<p>申请地址 : <span class="exturl" data-url="aHR0cHM6Ly9iLmFsaXBheS5jb20vc2lnbmluZy9wcm9kdWN0RGV0YWlsVjIuaHRtP3Byb2R1Y3RJZD1JMTAxMTAwMDI5MDAwMDAwMTAwMw==">https://b.alipay.com/signing/productDetailV2.htm?productId=I1011000290000001003</span></p>
<h3 id="特别提醒"><a class="anchor" href="#特别提醒">#</a> 特别提醒</h3>
<ul>
<li>经营内容,一般选零售,比如生活百货,水果店等(避免选互联网 / 金融等)。</li>
<li>营业执照是非必填项,可以不上传(参考产品规则)。</li>
<li>店铺招牌,可以利用搜索引擎或者大众点评。</li>
<li>联系方式?(据说可以随便输入,建议输入真实的)。</li>
<li>费率建议选择 0.38(如果能改的话)。</li>
</ul>
<div class="note warning">
<p>遇到申请出错可以选择这个地址进入<br />
链接:<span class="exturl" data-url="aHR0cHM6Ly9iLmFsaXBheS5jb20vc2lnbmluZy9hdXRob3JpemVkUHJvZHVjdFNldC5odG0jLz9faz1mOTRpYWo=">https://b.alipay.com/signing/authorizedProductSet.htm</span></p>
</div>
<p><img data-src="http://image.i286.com/images/dmf/step1.jpg" alt="演示" /><br />
<img data-src="http://image.i286.com/images/dmf/setp2.jpg" alt="演示" /></p>
<div class="note success">
<p>提交成功后等待客服审核即可<br />
客服工作时间(9:00-19:00)</p>
</div>
<p><img data-src="http://image.i286.com/images/dmf/setp3.jpg" alt="演示" /></p>
<h1 id="当面付优势"><a class="anchor" href="#当面付优势">#</a> 当面付优势</h1>
<ol>
<li>付款方式支持信用卡,花呗。</li>
<li>付款后可获得积分。</li>
<li>支持 API 接口对接收款</li>
</ol>
<h1 id="产品规则"><a class="anchor" href="#产品规则">#</a> 产品规则</h1>
<ol>
<li>签约时未提供同名营业执照(营业执照主体与支付宝账户认证主体同名),收款将会受到一定的限制,具体限制规则为交易限额:单笔收款≤1000,单日收款≤5W,不区分借记或贷记渠道。</li>
<li>签约时提供了同名营业执照,或者签约后补充了同名营业执照,收款不受限额。您可以登录商家后台,进入我的产品,通过资质凭证补全来恢复正常的产品使用,点此进入我的产品。</li>
</ol>
<h1 id="支付宝公钥和私钥生成流程"><a class="anchor" href="#支付宝公钥和私钥生成流程">#</a> 支付宝公钥和私钥生成流程</h1>
<p>请直接查看官方教程:<span class="exturl" data-url="aHR0cHM6Ly9vcGVuZG9jcy5hbGlwYXkuY29tL29wZW4vMjkxLzEwNTk3MQ==">点我查看</span></p>
<div class="note warning">
<p>务必认真仔细看完教程</p>
</div>
<h1 id="将当面付配置到网站里"><a class="anchor" href="#将当面付配置到网站里">#</a> 将当面付配置到网站里</h1>
<p> 当我生成了公钥和私钥后,就可以把相应的信息填上去了<br />
<img data-src="http://image.i286.com/images/dmf/3.png" alt="演示" /></p>
<h1 id="常见问题"><a class="anchor" href="#常见问题">#</a> 常见问题</h1>
<p>1. 支付了不到账(请检查你的公钥和私钥是否正确,因为就算这两个填错了还是可以扫码支付的)</p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/20671797.html</guid>
<title>关于Atom安装插件失败的解决方案</title>
<link>https://blog.i286.com/article/20671797.html</link>
<category term="代码笔记" scheme="https://blog.i286.com/categories/code-notes/" />
<category term="Atom" scheme="https://blog.i286.com/tags/Atom/" />
<pubDate>Mon, 25 Jan 2021 20:31:41 +0800</pubDate>
<description><![CDATA[ <h1 id="前言"><a class="anchor" href="#前言">#</a> 前言</h1>
<p> Atom 的功能依赖于拓展,但是很多人在安装插件的时候会遇到安装失败,下载失败等问题。其实原因很简单,Atom 的插件源全是国外的链接,部分运营商可能被墙了,因此,需要一定的步骤方可实现正常安装。</p>
<h3 id="解决方法"><a class="anchor" href="#解决方法">#</a> 解决方法</h3>
<figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>方法1:</pre></td></tr><tr><td data-num="2"></td><td><pre>在 C:<span class="token punctuation">\</span>Users<span class="token punctuation">\</span>用户名<span class="token punctuation">\</span>.atom 目录下,新建文件名为 .apmrc 的文本文件 ,然后添加如下内容: </pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token assign-left variable">registry</span><span class="token operator">=</span>https://registry.npm.taobao.org/</pre></td></tr><tr><td data-num="4"></td><td><pre>strict-ssl<span class="token operator">=</span>false</pre></td></tr></table></figure><figure class="highlight bash"><figcaption data-lang="bash"></figcaption><table><tr><td data-num="1"></td><td><pre>方法2:</pre></td></tr><tr><td data-num="2"></td><td><pre>添加文件后,发现安装插件还是报错,那是因为 apm 最终还是走的 <span class="token function">npm</span> 源,所以还需要更改 <span class="token function">npm</span> 源。</pre></td></tr><tr><td data-num="3"></td><td><pre>通过命令行:npm config <span class="token builtin class-name">set</span> registry https://registry.npm.taobao.org 改成淘宝的源</pre></td></tr></table></figure><p>最后通过 apm install --check<br />
如果出现<br />
Checking for native build tools done<br />
意味着可以顺利安装插件了!</p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/16be9022.html</guid>
<title>多个列表重组成字典[Python]</title>
<link>https://blog.i286.com/article/16be9022.html</link>
<category term="代码笔记" scheme="https://blog.i286.com/categories/code-notes/" />
<category term="算法" scheme="https://blog.i286.com/tags/%E7%AE%97%E6%B3%95/" />
<category term="python" scheme="https://blog.i286.com/tags/python/" />
<category term="代码" scheme="https://blog.i286.com/tags/%E4%BB%A3%E7%A0%81/" />
<pubDate>Mon, 25 Jan 2021 20:24:02 +0800</pubDate>
<description><![CDATA[ <h3 id="源代码"><a class="anchor" href="#源代码">#</a> 源代码</h3>
<figure class="highlight python"><figcaption data-lang="python"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token comment"># coding:utf-8</span></pre></td></tr><tr><td data-num="2"></td><td><pre>a <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">,</span><span class="token number">4</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="3"></td><td><pre>b <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'a'</span><span class="token punctuation">,</span><span class="token string">'b'</span><span class="token punctuation">,</span><span class="token string">'c'</span><span class="token punctuation">,</span><span class="token string">'d'</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="4"></td><td><pre>c <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'你'</span><span class="token punctuation">,</span><span class="token string">'好'</span><span class="token punctuation">,</span><span class="token string">'云'</span><span class="token punctuation">,</span><span class="token string">'影'</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="5"></td><td><pre>d <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'人'</span><span class="token punctuation">,</span><span class="token string">'生'</span><span class="token punctuation">,</span><span class="token string">'苦'</span><span class="token punctuation">,</span><span class="token string">'短'</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="6"></td><td><pre></pre></td></tr><tr><td data-num="7"></td><td><pre>e <span class="token operator">=</span> <span class="token builtin">list</span><span class="token punctuation">(</span><span class="token builtin">zip</span><span class="token punctuation">(</span>b<span class="token punctuation">,</span>c<span class="token punctuation">,</span>d<span class="token punctuation">)</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="8"></td><td><pre>f <span class="token operator">=</span> <span class="token builtin">dict</span><span class="token punctuation">(</span><span class="token builtin">zip</span><span class="token punctuation">(</span>a<span class="token punctuation">,</span>e<span class="token punctuation">)</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="9"></td><td><pre></pre></td></tr><tr><td data-num="10"></td><td><pre><span class="token keyword">print</span><span class="token punctuation">(</span>f<span class="token punctuation">)</span></pre></td></tr><tr><td data-num="11"></td><td><pre></pre></td></tr><tr><td data-num="12"></td><td><pre><span class="token comment">#打印出</span></pre></td></tr><tr><td data-num="13"></td><td><pre><span class="token comment">#&#123;1: ('a', ' 你 ', ' 人 '), 2: ('b', ' 好 ', ' 生 '), 3: ('c', ' 云 ', ' 苦 '), 4: ('d', ' 影 ', ' 短 ')&#125;</span></pre></td></tr></table></figure><p>调用的话就可以直接</p>
<figure class="highlight python"><figcaption data-lang="python"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token keyword">print</span><span class="token punctuation">(</span>f<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token comment">#打印出 ('a',' 你 ',' 人 ')</span></pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token keyword">print</span><span class="token punctuation">(</span>f<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="4"></td><td><pre><span class="token comment">#打印出 a</span></pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token keyword">print</span><span class="token punctuation">(</span>f<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="6"></td><td><pre><span class="token comment">#打印出 你</span></pre></td></tr><tr><td data-num="7"></td><td><pre><span class="token comment">#类似的 不过要切记你的下标必须存在有元素,否则会报错</span></pre></td></tr></table></figure><h3 id="二维字典示例"><a class="anchor" href="#二维字典示例">#</a> 二维字典示例</h3>
<figure class="highlight python"><figcaption data-lang="python"></figcaption><table><tr><td data-num="1"></td><td><pre>a <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">,</span><span class="token number">4</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="2"></td><td><pre>b <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'a'</span><span class="token punctuation">,</span><span class="token string">'b'</span><span class="token punctuation">,</span><span class="token string">'c'</span><span class="token punctuation">,</span><span class="token string">'d'</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="3"></td><td><pre>c <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'你'</span><span class="token punctuation">,</span><span class="token string">'好'</span><span class="token punctuation">,</span><span class="token string">'云'</span><span class="token punctuation">,</span><span class="token string">'影'</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="4"></td><td><pre>d <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'人'</span><span class="token punctuation">,</span><span class="token string">'生'</span><span class="token punctuation">,</span><span class="token string">'苦'</span><span class="token punctuation">,</span><span class="token string">'短'</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="5"></td><td><pre></pre></td></tr><tr><td data-num="6"></td><td><pre>e <span class="token operator">=</span> <span class="token builtin">list</span><span class="token punctuation">(</span><span class="token builtin">zip</span><span class="token punctuation">(</span>c<span class="token punctuation">,</span>d<span class="token punctuation">)</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="7"></td><td><pre><span class="token comment">#g = dict(zip(b,e))</span></pre></td></tr><tr><td data-num="8"></td><td><pre>f <span class="token operator">=</span> <span class="token punctuation">&#123;</span><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="9"></td><td><pre><span class="token keyword">for</span> r <span class="token keyword">in</span> a<span class="token punctuation">:</span></pre></td></tr><tr><td data-num="10"></td><td><pre> h <span class="token operator">=</span> <span class="token punctuation">&#123;</span><span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="11"></td><td><pre> h<span class="token punctuation">[</span>b<span class="token punctuation">[</span>r<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">]</span> <span class="token operator">=</span> e<span class="token punctuation">[</span>r<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">]</span></pre></td></tr><tr><td data-num="12"></td><td><pre> f<span class="token punctuation">[</span>a<span class="token punctuation">[</span>r<span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">]</span> <span class="token operator">=</span> h</pre></td></tr><tr><td data-num="13"></td><td><pre><span class="token keyword">print</span><span class="token punctuation">(</span>f<span class="token punctuation">)</span></pre></td></tr><tr><td data-num="14"></td><td><pre><span class="token comment">#打印出</span></pre></td></tr><tr><td data-num="15"></td><td><pre><span class="token comment">#&#123;1: &#123;'a': (' 你 ', ' 人 ')&#125;, 2: &#123;'b': (' 好 ', ' 生 ')&#125;, 3: &#123;'c': (' 云 ', ' 苦 ')&#125;, 4: &#123;'d': (' 影 ', ' 短 ')&#125;&#125;</span></pre></td></tr><tr><td data-num="16"></td><td><pre><span class="token keyword">print</span><span class="token punctuation">(</span>f<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="17"></td><td><pre><span class="token comment">#打印出</span></pre></td></tr><tr><td data-num="18"></td><td><pre><span class="token comment">#&#123;'a': (' 你 ', ' 人 ')&#125;</span></pre></td></tr><tr><td data-num="19"></td><td><pre><span class="token comment">#其余的都一样调用方法</span></pre></td></tr><tr><td data-num="20"></td><td><pre><span class="token comment">#三维字典可以自行研究,跟二维的差不多</span></pre></td></tr></table></figure> ]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/e5a13a45.html</guid>
<title>求一个等式可填入的符号[php]</title>
<link>https://blog.i286.com/article/e5a13a45.html</link>
<category term="代码笔记" scheme="https://blog.i286.com/categories/code-notes/" />
<category term="php" scheme="https://blog.i286.com/tags/php/" />
<category term="算法" scheme="https://blog.i286.com/tags/%E7%AE%97%E6%B3%95/" />
<pubDate>Mon, 25 Jan 2021 10:46:00 +0800</pubDate>
<description><![CDATA[ <h3 id="背景"><a class="anchor" href="#背景">#</a> 背景</h3>
<p> 来源于一道小学数学题,实际做起来灰常的简单,但我还是想通过 php 代码来折腾一下</p>
<h3 id="代码"><a class="anchor" href="#代码">#</a> 代码</h3>
<figure class="highlight php"><figcaption data-lang="PHP"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token php language-php"><span class="token delimiter important">&lt;?php</span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token comment">// 计算 8 () 3 () 4=15 () 3 () 15 括号填写的符号且不重复</span></pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token variable">$a</span> <span class="token operator">=</span> <span class="token number">8</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="4"></td><td><pre><span class="token variable">$b</span> <span class="token operator">=</span> <span class="token number">3</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="5"></td><td><pre><span class="token variable">$c</span> <span class="token operator">=</span> <span class="token number">4</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="6"></td><td><pre><span class="token variable">$d</span> <span class="token operator">=</span> <span class="token number">15</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="7"></td><td><pre><span class="token variable">$dd</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span><span class="token string single-quoted-string">'+'</span><span class="token punctuation">,</span><span class="token string single-quoted-string">'-'</span><span class="token punctuation">,</span><span class="token string single-quoted-string">'*'</span><span class="token punctuation">,</span><span class="token string single-quoted-string">'/'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="8"></td><td><pre><span class="token keyword">while</span><span class="token punctuation">(</span><span class="token constant boolean">true</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="9"></td><td><pre><span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="10"></td><td><pre> <span class="token variable">$tt</span> <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span> <span class="token comment">// 空数组</span></pre></td></tr><tr><td data-num="11"></td><td><pre> <span class="token variable">$t1</span> <span class="token operator">=</span> <span class="token variable">$dd</span><span class="token punctuation">[</span><span class="token function">rand</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">;</span> </pre></td></tr><tr><td data-num="12"></td><td><pre> <span class="token variable">$t2</span> <span class="token operator">=</span> <span class="token variable">$dd</span><span class="token punctuation">[</span><span class="token function">rand</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="13"></td><td><pre> <span class="token variable">$t3</span> <span class="token operator">=</span> <span class="token variable">$dd</span><span class="token punctuation">[</span><span class="token function">rand</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="14"></td><td><pre> <span class="token variable">$t4</span> <span class="token operator">=</span> <span class="token variable">$dd</span><span class="token punctuation">[</span><span class="token function">rand</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="15"></td><td><pre> <span class="token function">array_push</span><span class="token punctuation">(</span><span class="token variable">$tt</span><span class="token punctuation">,</span><span class="token variable">$t1</span><span class="token punctuation">,</span><span class="token variable">$t2</span><span class="token punctuation">,</span><span class="token variable">$t3</span><span class="token punctuation">,</span><span class="token variable">$t4</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="16"></td><td><pre> <span class="token comment">// 判断是否有重复值</span></pre></td></tr><tr><td data-num="17"></td><td><pre> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token function">count</span><span class="token punctuation">(</span><span class="token function">array_unique</span><span class="token punctuation">(</span><span class="token variable">$tt</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token operator">!=</span> <span class="token function">count</span><span class="token punctuation">(</span><span class="token variable">$tt</span><span class="token punctuation">)</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="18"></td><td><pre> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="19"></td><td><pre> <span class="token keyword">continue</span><span class="token punctuation">;</span> <span class="token comment">// 继续循环</span></pre></td></tr><tr><td data-num="20"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="21"></td><td><pre> <span class="token comment">// 左边</span></pre></td></tr><tr><td data-num="22"></td><td><pre> <span class="token variable">$left</span> <span class="token operator">=</span> <span class="token string double-quoted-string">"8<span class="token interpolation"><span class="token punctuation">&#123;</span><span class="token variable">$t1</span><span class="token punctuation">&#125;</span></span>3<span class="token interpolation"><span class="token punctuation">&#123;</span><span class="token variable">$t2</span><span class="token punctuation">&#125;</span></span>4;"</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="23"></td><td><pre> <span class="token variable">$left2</span> <span class="token operator">=</span> <span class="token keyword">eval</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"return "</span><span class="token operator">.</span><span class="token variable">$left</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="24"></td><td><pre> <span class="token comment">// 右边</span></pre></td></tr><tr><td data-num="25"></td><td><pre> <span class="token variable">$right</span> <span class="token operator">=</span> <span class="token string double-quoted-string">"15<span class="token interpolation"><span class="token punctuation">&#123;</span><span class="token variable">$t3</span><span class="token punctuation">&#125;</span></span>3<span class="token interpolation"><span class="token punctuation">&#123;</span><span class="token variable">$t4</span><span class="token punctuation">&#125;</span></span>15;"</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="26"></td><td><pre> <span class="token variable">$right2</span> <span class="token operator">=</span> <span class="token keyword">eval</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"return "</span><span class="token operator">.</span><span class="token variable">$right</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="27"></td><td><pre> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token variable">$left2</span> <span class="token operator">==</span> <span class="token variable">$right2</span><span class="token punctuation">)</span></pre></td></tr><tr><td data-num="28"></td><td><pre> <span class="token punctuation">&#123;</span></pre></td></tr><tr><td data-num="29"></td><td><pre> <span class="token keyword">echo</span> <span class="token variable">$left2</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="30"></td><td><pre> <span class="token keyword">echo</span> <span class="token string single-quoted-string">'&lt;br/>'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="31"></td><td><pre> <span class="token keyword">echo</span> <span class="token variable">$right2</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="32"></td><td><pre> <span class="token keyword">echo</span> <span class="token string single-quoted-string">'&lt;br/>'</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="33"></td><td><pre> <span class="token keyword">echo</span> <span class="token function">trim</span><span class="token punctuation">(</span><span class="token variable">$left</span><span class="token punctuation">,</span><span class="token string single-quoted-string">';'</span><span class="token punctuation">)</span><span class="token operator">.</span><span class="token string single-quoted-string">'='</span><span class="token operator">.</span><span class="token function">trim</span><span class="token punctuation">(</span><span class="token variable">$right</span><span class="token punctuation">,</span><span class="token string single-quoted-string">';'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="34"></td><td><pre> <span class="token keyword">break</span><span class="token punctuation">;</span></pre></td></tr><tr><td data-num="35"></td><td><pre> <span class="token punctuation">&#125;</span></pre></td></tr><tr><td data-num="36"></td><td><pre><span class="token punctuation">&#125;</span></span></pre></td></tr></table></figure><p>如果有更好的方法,还望朋友您不吝赐教!</p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/dce9b0d5.html</guid>
<title>炫酷的点击粒子爆炸特效</title>
<link>https://blog.i286.com/article/dce9b0d5.html</link>
<category term="代码笔记" scheme="https://blog.i286.com/categories/code-notes/" />
<category term="粒子爆炸" scheme="https://blog.i286.com/tags/%E7%B2%92%E5%AD%90%E7%88%86%E7%82%B8/" />
<category term="特效" scheme="https://blog.i286.com/tags/%E7%89%B9%E6%95%88/" />
<pubDate>Sun, 24 Jan 2021 12:47:00 +0800</pubDate>
<description><![CDATA[ <h2 id="效果图"><a class="anchor" href="#效果图">#</a> 效果图</h2>
<p><img data-src="/images/pasted-0.png" alt="效果图" /> <br />
怎么样?你是否也想给你的网站加上这个特效呢?</p>
<h2 id="代码"><a class="anchor" href="#代码">#</a> 代码</h2>
<figure class="highlight javascript"><figcaption data-lang="javascript"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token operator">&lt;</span>canvas <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">"fireworks"</span> style<span class="token operator">=</span><span class="token string">"position:fixed;left:0;top:0;z-index:1;pointer-events:none"</span><span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>canvas<span class="token operator">></span></pre></td></tr><tr><td data-num="2"></td><td><pre><span class="token operator">&lt;</span>script src<span class="token operator">=</span><span class="token string">"/js/anime.min.js"</span><span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">></span></pre></td></tr><tr><td data-num="3"></td><td><pre><span class="token operator">&lt;</span>script src<span class="token operator">=</span><span class="token string">"/js/fireworks.js"</span><span class="token operator">></span><span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">></span></pre></td></tr></table></figure><p>至于 anime.min.js 和 firworks.js 可以直接在本页下载(<span class="label danger">右键就好了</span>)</p>
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.i286.com/article/de39a815.html</guid>
<title>我的第一篇hexo博客</title>
<link>https://blog.i286.com/article/de39a815.html</link>
<category term="随心" scheme="https://blog.i286.com/categories/myheart/" />
<category term="演示" scheme="https://blog.i286.com/tags/%E6%BC%94%E7%A4%BA/" />
<pubDate>Sun, 24 Jan 2021 01:21:00 +0800</pubDate>
<description><![CDATA[ <h1 id="导语"><a class="anchor" href="#导语">#</a> 导语</h1>
<p> 别来无恙啊,我的老朋友。由于<span class="exturl" data-url="aHR0cDovL2llZmFyLmNu"> iefar.cn</span> 这个域名已被其他人买了,导致原来由 emlog 驱动的博客停用<span class="label danger">资源文件都丢失,改起来很麻烦</span>,所以不得不更换一个新的博客<span class="label danger">正好我也想换了</span>,于是乎就有了这个基于 Hexo 驱动搭建的博客。<br />
本博客已托管在 github</p>
<div class="note success">
<p>我还是你们熟悉的老云影</p>
</div>
]]></description>
</item>
</channel>
</rss>