|
@@ -13,6 +13,7 @@ use App\Models\CustomModule\CustomModuleCategory; |
|
@@ -13,6 +13,7 @@ use App\Models\CustomModule\CustomModuleCategory; |
|
13
|
use App\Models\CustomModule\CustomModuleContent;
|
13
|
use App\Models\CustomModule\CustomModuleContent;
|
|
14
|
use App\Models\CustomModule\CustomModuleExtentContent;
|
14
|
use App\Models\CustomModule\CustomModuleExtentContent;
|
|
15
|
use App\Models\News\News;
|
15
|
use App\Models\News\News;
|
|
|
|
16
|
+use App\Models\Product\Category;
|
|
16
|
use App\Models\RouteMap\RouteMap;
|
17
|
use App\Models\RouteMap\RouteMap;
|
|
17
|
use App\Models\Template\BTemplate;
|
18
|
use App\Models\Template\BTemplate;
|
|
18
|
use App\Models\Template\Template;
|
19
|
use App\Models\Template\Template;
|
|
@@ -36,7 +37,392 @@ class LyhImportTest extends Command |
|
@@ -36,7 +37,392 @@ class LyhImportTest extends Command |
|
36
|
*/
|
37
|
*/
|
|
37
|
protected $description = '导入数据';
|
38
|
protected $description = '导入数据';
|
|
38
|
|
39
|
|
|
39
|
- public $data = '';
|
40
|
+ public $data = '1740192727366583733,"Electrical Transmission and Control Series Relay series",1740132848932187377
|
|
|
|
41
|
+1740192836461235605,Connecting cables,-3
|
|
|
|
42
|
+1740192976846127984,C-lin Sensor Price List,1740192727366576157
|
|
|
|
43
|
+1740193010378233300,Solid state relay,1740192518974523400
|
|
|
|
44
|
+1740193111689540125,M8,1740192836461235605
|
|
|
|
45
|
+1740193111689556835,M12,1740192836461235605
|
|
|
|
46
|
+1740193149374663559,M8,1740193111689540125
|
|
|
|
47
|
+1740193203100056309,M12,1740193111689556835
|
|
|
|
48
|
+1740193535217827975,KSS,-3
|
|
|
|
49
|
+1740193535217844541,Ribbon,1740193535217827975
|
|
|
|
50
|
+1740193597681677178,Ribbon price list,1740193535217844541
|
|
|
|
51
|
+1740193777125983977,FangNuo,-3
|
|
|
|
52
|
+1740193831258425323,Laminator,1740193777125983977
|
|
|
|
53
|
+1740194014173428572,Household glue machine,1740193831258425323
|
|
|
|
54
|
+1740194058273532445,NUOMI,-3
|
|
|
|
55
|
+1740194296762313716,Kraft Paper Bag,1740194058273532445
|
|
|
|
56
|
+1740194296762328368,Aluminum foil bag,1740194058273532445
|
|
|
|
57
|
+1740194425503958650,Kraft Paper Bag price list,1740194296762313716
|
|
|
|
58
|
+1740194542715225591,Continental,-3
|
|
|
|
59
|
+1740194598552212489,Belt,1740194542715225591
|
|
|
|
60
|
+1740194624773525844,industrial belt,1740194598552212489
|
|
|
|
61
|
+1740194624776105664,Continental industrial belt,1740194598552212489
|
|
|
|
62
|
+1740195015343747911,Aluminum foil bag,1740194296762328368
|
|
|
|
63
|
+1740195164397968669,Sensor,1740192644100000417
|
|
|
|
64
|
+1740195468197444364,Relay,1740133082101205249
|
|
|
|
65
|
+1740204496795912169,KINCO,-1
|
|
|
|
66
|
+1740204496795934912,yaskawa,-1
|
|
|
|
67
|
+1740204496795942275,resi,-1
|
|
|
|
68
|
+1740204654100002536,KINCO PLC,1740204496795912169
|
|
|
|
69
|
+1740204682100001669,MINGWEI Substitutes,-2
|
|
|
|
70
|
+1740204751295231178,power supply,-3
|
|
|
|
71
|
+1740204846975212584,connect,-3
|
|
|
|
72
|
+1740204846975232824,cable,-3
|
|
|
|
73
|
+1740379444470403440,BULL,-3
|
|
|
|
74
|
+1740379444470425911,Power strips,1740379444470403440
|
|
|
|
75
|
+1740379586616762498,E-Weichat,-3
|
|
|
|
76
|
+1740379586616779971,Waterproof junction box,1740379586616762498
|
|
|
|
77
|
+1740379676696319944,WNE,-3
|
|
|
|
78
|
+1740379676696331900,Multi-function electric pen,1740379676696319944
|
|
|
|
79
|
+1740379817943319952,HongSH,-3
|
|
|
|
80
|
+1740379817943355678,MC4 connectors and plugs,1740379817943319952
|
|
|
|
81
|
+1740380067210619738,CHCC,-3
|
|
|
|
82
|
+1740380067210633767,Cable ties,1740380067210619738
|
|
|
|
83
|
+1740380383829552143,LJ,-3
|
|
|
|
84
|
+1740380383829565723,Pneumatic joints,1740380383829552143
|
|
|
|
85
|
+1740380581697941898,LZ,-3
|
|
|
|
86
|
+1740380581697955520,On-off valves,1740380581697941898
|
|
|
|
87
|
+1740380697154905966,KSR,-3
|
|
|
|
88
|
+1740380697154919110,Thickened corner code,1740380697154905966
|
|
|
|
89
|
+1740380860543808335,BECKHOFF,1740380860542589719
|
|
|
|
90
|
+1740380860543822686,IO-EtherCAT BOX EPPxxxx,1740380860543808335
|
|
|
|
91
|
+1740380916100000537,WZBTFM,-3
|
|
|
|
92
|
+1740380916100024798,Waterproof Connector,1740380916100000537
|
|
|
|
93
|
+1740381181352991481,IO-EtherCAT BOX EPPxxxx,1740380860542589719
|
|
|
|
94
|
+1740381458773048901,Weidmueller,-1
|
|
|
|
95
|
+1740384098809425590,FP7,1740129447728729493
|
|
|
|
96
|
+1740384098809449448,FP0H,1740129447728729493
|
|
|
|
97
|
+1740384098809459239,FP0R,1740129447728729493
|
|
|
|
98
|
+1740384098809467774,Area Sensors,1740129447728729493
|
|
|
|
99
|
+1740384098809475922,Fiber Sensors,1740129447728729493
|
|
|
|
100
|
+1740384098809484347,Particular Use Sensors,1740129447728729493
|
|
|
|
101
|
+1740384098809493905,Laser Sensor,1740129447728729493
|
|
|
|
102
|
+1740384098809503125,Light Curtains / Safety Components,1740129447728729493
|
|
|
|
103
|
+1740384098809511902,Micro photoelectric sensor,1740129447728729493
|
|
|
|
104
|
+1740384098809521126,photoelectric sensor,1740129447728729493
|
|
|
|
105
|
+1740387532161783913,Terminal blocks,1740381458773048901
|
|
|
|
106
|
+1740387539610785520,FP7,1740384098809425590
|
|
|
|
107
|
+1740387559491139809,FP0H,1740384098809449448
|
|
|
|
108
|
+1740387569924103963,FP0R,1740384098809459239
|
|
|
|
109
|
+1740387595725216579,Area Sensors,1740384098809467774
|
|
|
|
110
|
+1740387610401221601,Fiber Sensors,1740384098809475922
|
|
|
|
111
|
+1740387627312520154,Particular Use Sensors,1740384098809484347
|
|
|
|
112
|
+1740387640650373809,Laser Sensor,1740384098809493905
|
|
|
|
113
|
+1740387654897107480,Light Curtains / Safety Components,1740384098809503125
|
|
|
|
114
|
+1740387669172141556,Micro photoelectric sensor,1740384098809511902
|
|
|
|
115
|
+1740387820903433309,photoelectric sensor,1740384098809521126
|
|
|
|
116
|
+1740388742240035792,TP-LINK,-3
|
|
|
|
117
|
+1740388742240057430,MOWESTAR,-3
|
|
|
|
118
|
+1740388742240064486,UOTEK,-3
|
|
|
|
119
|
+1740394391502920604,Terminal block accessories,1740381458773048901
|
|
|
|
120
|
+1740449417616168263,Festo,-1
|
|
|
|
121
|
+1740451080540349142,Festo VUVX,1740449417616168263
|
|
|
|
122
|
+1740451424100000605,Festo VUVX,1740451080540349142
|
|
|
|
123
|
+1740451471538445382,Festo Solenoid valve VUVS,1740449417616168263
|
|
|
|
124
|
+1740451482540909336,Festo Solenoid valve VUVS,1740451471538445382
|
|
|
|
125
|
+1740451535240929323,Festo Solenoid valve VUVG,1740449417616168263
|
|
|
|
126
|
+1740451543481706759,Festo Solenoid valve VUVG,1740451535240929323
|
|
|
|
127
|
+1740451583570472650,Festo Standards-based valve VSVA,1740449417616168263
|
|
|
|
128
|
+1740451592871499344,Festo Standards-based valve VSVA,1740451583570472650
|
|
|
|
129
|
+1740451631546732450,Festo Solenoid valve VSNC,1740449417616168263
|
|
|
|
130
|
+1740451639598849159,Festo Solenoid valve VSNC,1740451631546732450
|
|
|
|
131
|
+1740451745944421728,Festo Solenoid valve VMPA,1740449417616168263
|
|
|
|
132
|
+1740451755100001294,Festo Solenoid valve VMPA,1740451745944421728
|
|
|
|
133
|
+1740451792290618418,Festo Push-in fitting QST,1740449417616168263
|
|
|
|
134
|
+1740451800194972302,Festo Push-in fitting QST,1740451792290618418
|
|
|
|
135
|
+1740451841537976524,Festo Push-in fitting QSL,1740449417616168263
|
|
|
|
136
|
+1740451848180617360,Festo Push-in fitting QSL,1740451841537976524
|
|
|
|
137
|
+1740451892589892446,Festo Push-in fitting QS,1740449417616168263
|
|
|
|
138
|
+1740451899296708332,Festo Push-in fitting QS,1740451892589892446
|
|
|
|
139
|
+1740451932736823527,Festo Standard valve MFH,1740449417616168263
|
|
|
|
140
|
+1740451939448036690,Festo Standard valve MFH,1740451932736823527
|
|
|
|
141
|
+1740451979954727905,Festo Standard valve JMFH,1740449417616168263
|
|
|
|
142
|
+1740451989398777972,Festo Standard valve JMFH,1740451979954727905
|
|
|
|
143
|
+1740452021146680350,Festo Standards-based cylinder DSBG,1740449417616168263
|
|
|
|
144
|
+1740452029334674488,Festo Standards-based cylinder DSBG,1740452021146680350
|
|
|
|
145
|
+1740452074809820460,Festo Round cylinder DSNU,1740449417616168263
|
|
|
|
146
|
+1740452081450325611,Festo Round cylinder DSNU,1740452074809820460
|
|
|
|
147
|
+1740452131531504298,Festo cylinder DSBC,1740449417616168263
|
|
|
|
148
|
+1740452142511839791,Festo cylinder DSBC,1740452131531504298
|
|
|
|
149
|
+1740452199889464211,Festo Compact cylinder ADN-S,1740449417616168263
|
|
|
|
150
|
+1740452205719137552,Festo Compact cylinder ADN-S,1740452199889464211
|
|
|
|
151
|
+1740452243115738363,Festo Compact cylinder ADN,1740449417616168263
|
|
|
|
152
|
+1740452256225656109,Festo Compact cylinder ADN,1740452243115738363
|
|
|
|
153
|
+1740452902891860328,Festo,-1
|
|
|
|
154
|
+1740453023522996961,Pneumatic FESTO,1740453478558548235
|
|
|
|
155
|
+1740453441694351110,AIRTAC,-1
|
|
|
|
156
|
+1740453478558548235,Pneumatic Accessories,1740449417616168263
|
|
|
|
157
|
+1740453883384938270,AirTAC Fittings,1740453441694351110
|
|
|
|
158
|
+1740464692534765652,plug-in modules,1740380860542589719
|
|
|
|
159
|
+1740464747495350378,IO-EtherCAT plug-in modules,1740464692534765652
|
|
|
|
160
|
+1740476741811397597,Guide rail and slide block,-2
|
|
|
|
161
|
+1740476808100000209,Lead screw guide,1740476741811397597
|
|
|
|
162
|
+1740476931671002744,Lead screw guide,1740476808100000209
|
|
|
|
163
|
+1740476961259780292,Linear guides,1740476741811397597
|
|
|
|
164
|
+1740476990753093740,Linear guides,1740476961259780292
|
|
|
|
165
|
+1740531391445426661,THK Guideway and slider,1740476741811397597
|
|
|
|
166
|
+1740531440324706223,THK Guideway and slider,1740531391445426661
|
|
|
|
167
|
+1740540415292726866,Proximity sensor,1740192644100000417
|
|
|
|
168
|
+1740540744329087346,Shenler,-3
|
|
|
|
169
|
+1740540744329110250,Relays,1740540744329087346
|
|
|
|
170
|
+1740548672915904742,HGS,-3
|
|
|
|
171
|
+1740548719202352495,Eco-friendly LED light connecting cable,1740548672915904742
|
|
|
|
172
|
+1740548784495164342,Eco-friendly LED light connecting cable,1740548719202352495
|
|
|
|
173
|
+1740548906257921948,BULL,-3
|
|
|
|
174
|
+1740548991829183530,European Standard Universal Socket,1740548906257921948
|
|
|
|
175
|
+1740549036380698790,European Standard Universal Socket,1740548991829183530
|
|
|
|
176
|
+1740549055495036342,European standard plugs and sockets,1740548906257921948
|
|
|
|
177
|
+1740549086842318296,European standard plugs and sockets,1740549055495036342
|
|
|
|
178
|
+1740552065133458952,DELIX,-3
|
|
|
|
179
|
+1740552086784919211,IP67 Industrial Aviation Plugs,1740552065133458952
|
|
|
|
180
|
+1740552120100001622,IP67 Industrial Aviation Plugs,1740552086784919211
|
|
|
|
181
|
+1740552158100001281,IP44 Plug and socket connectors,1740552065133458952
|
|
|
|
182
|
+1740552178107775346,IP44 Plug and socket connectors,1740552158100001281
|
|
|
|
183
|
+1740552245763919162,American Standard Convertible Plug,1740548906257921948
|
|
|
|
184
|
+1740552278329600464,American Standard Convertible Plug,1740552245763919162
|
|
|
|
185
|
+1740552434219136525,Hao Xiang,-3
|
|
|
|
186
|
+1740552469642349718,Metal round flat gasket washers,1740552434219136525
|
|
|
|
187
|
+1740552668406666840,Metal round flat gasket washers,1740552469642349718
|
|
|
|
188
|
+1740552808281889545,Flat head tapping screws Phillips countersunk head,1740552434219136525
|
|
|
|
189
|
+1740553161577709887,Flat head tapping screws Phillips countersunk head,1740552808281889545
|
|
|
|
190
|
+1740620655870912946,TBI Ball Screw Nuts,1740476741811397597
|
|
|
|
191
|
+1740621298788401519,Ball Screw Nuts,1740620655870912946
|
|
|
|
192
|
+1740621426378264770,Zheng gong,-3
|
|
|
|
193
|
+1740621475647272584,Explosion-proof socket plug board,1740621426378264770
|
|
|
|
194
|
+1740621564731368658,Explosion-proof socket plug board,1740621475647272584
|
|
|
|
195
|
+1740621602637171197,Li wei,-3
|
|
|
|
196
|
+1740621622463206187,Blade Remote IO Module,1740621602637171197
|
|
|
|
197
|
+1740621787955193884,Blade Remote IO Module,1740621622463206187
|
|
|
|
198
|
+1740625149539095968,Embedded switch,1740388742240057430
|
|
|
|
199
|
+1740625149539120132,Fiber optic transceiver,1740388742240057430
|
|
|
|
200
|
+1740625149539131969,Industrial wireless data transmission terminal,1740388742240057430
|
|
|
|
201
|
+1740625149539140192,Industrial wireless router,1740388742240057430
|
|
|
|
202
|
+1740625149539150446,Interface converter,1740388742240057430
|
|
|
|
203
|
+1740625149539158206,Managed industrial switch,1740388742240057430
|
|
|
|
204
|
+1740625149539167954,Network accessories,1740388742240057430
|
|
|
|
205
|
+1740625149539177665,PoE switch,1740388742240057430
|
|
|
|
206
|
+1740625149539187117,Serial server,1740388742240057430
|
|
|
|
207
|
+1740625149539196112,Unmanaged industrial switch,1740388742240057430
|
|
|
|
208
|
+1740625318708400740,Embedded switch,1740625149539095968
|
|
|
|
209
|
+1740625418405386106,Fiber optic transceiver,1740625149539120132
|
|
|
|
210
|
+1740625446406396410,Industrial wireless data transmission terminal,1740625149539131969
|
|
|
|
211
|
+1740625473541536296,Industrial wireless router,1740625149539140192
|
|
|
|
212
|
+1740625490524326651,Interface converter,1740625149539150446
|
|
|
|
213
|
+1740625512696312974,Managed industrial switch,1740625149539158206
|
|
|
|
214
|
+1740625553769387342,Network accessories,1740625149539167954
|
|
|
|
215
|
+1740625575464504817,PoE switch,1740625149539177665
|
|
|
|
216
|
+1740625597844669363,Serial server,1740625149539187117
|
|
|
|
217
|
+1740625628874531516,Unmanaged industrial switch,1740625149539196112
|
|
|
|
218
|
+1740626079885957759,Embedded Modules,1740388742240064486
|
|
|
|
219
|
+1740626079885970803,Industrial Ethernet Switches,1740388742240064486
|
|
|
|
220
|
+1740626079885977153,Interface Converters,1740388742240064486
|
|
|
|
221
|
+1740626079885982561,Lightning Isolators,1740388742240064486
|
|
|
|
222
|
+1740626079885989751,Multiport Serial Cards,1740388742240064486
|
|
|
|
223
|
+1740626079885995488,Network Card,1740388742240064486
|
|
|
|
224
|
+1740626079886014977,Security Switch,1740388742240064486
|
|
|
|
225
|
+1740626079886021793,Serial Device Servers,1740388742240064486
|
|
|
|
226
|
+1740626079886027469,Serial Media Converters,1740388742240064486
|
|
|
|
227
|
+1740626079886033190,Wireless communication,1740388742240064486
|
|
|
|
228
|
+1740626206811954562,Embedded Modules,1740626079885957759
|
|
|
|
229
|
+1740627415894669503,Industrial Ethernet Switches,1740626079885970803
|
|
|
|
230
|
+1740627442111480154,Interface Converters,1740626079885977153
|
|
|
|
231
|
+1740627464769805357,Lightning Isolators,1740626079885982561
|
|
|
|
232
|
+1740627525143457778,Multiport Serial Cards,1740626079885989751
|
|
|
|
233
|
+1740627550626980317,Network Card,1740626079885995488
|
|
|
|
234
|
+1740627620663566682,Security Switch,1740626079886014977
|
|
|
|
235
|
+1740627652999155653,Serial Device Servers,1740626079886021793
|
|
|
|
236
|
+1740627666100000490,Serial Media Converters,1740626079886027469
|
|
|
|
237
|
+1740627694102109998,Wireless communication,1740626079886033190
|
|
|
|
238
|
+1740628131495071104,All optical network,1740388742240035792
|
|
|
|
239
|
+1740628131495088739,Ethernet optical switch,1740628131495071104
|
|
|
|
240
|
+1740628131495096166,Fiber optic transceiver,1740628131495071104
|
|
|
|
241
|
+1740628131495114986,Optical module,1740628131495071104
|
|
|
|
242
|
+1740628131495128507,Enterprise Wireless,1740388742240035792
|
|
|
|
243
|
+1740628131495135270,Enterprise-grade wireless VPN routers,1740628131495128507
|
|
|
|
244
|
+1740628131495141945,Wireless Access Points (APs),1740628131495128507
|
|
|
|
245
|
+1740628131495148516,Wireless bridge/wireless bridge for monitoring,1740628131495128507
|
|
|
|
246
|
+1740628131495154416,Wireless Controller (AC),1740628131495128507
|
|
|
|
247
|
+1740628131495161963,Industrial products,1740388742240035792
|
|
|
|
248
|
+1740628131495167495,Industrial computer,1740628131495161963
|
|
|
|
249
|
+1740628131495173418,Industrial cybersecurity,1740628131495161963
|
|
|
|
250
|
+1740628131495178736,Industrial Fiber Optic Transceivers Modules,1740628131495161963
|
|
|
|
251
|
+1740628131495184721,Industrial Power Supplies Accessories,1740628131495161963
|
|
|
|
252
|
+1740628131495190902,Industrial routers/gateways,1740628131495161963
|
|
|
|
253
|
+1740628131495195721,Industrial switches,1740628131495161963
|
|
|
|
254
|
+1740628131495201580,Industrial vision,1740628131495161963
|
|
|
|
255
|
+1740628131495207256,Industrial wireless,1740628131495161963
|
|
|
|
256
|
+1740628131495213319,Networking of industrial equipment,1740628131495161963
|
|
|
|
257
|
+1740628131495219324,Network card,1740388742240035792
|
|
|
|
258
|
+1740628131495225527,PCIe wireless network card,1740628131495219324
|
|
|
|
259
|
+1740628131495231389,USB wireless network card,1740628131495219324
|
|
|
|
260
|
+1740628131495237621,Wired network card/adapter,1740628131495219324
|
|
|
|
261
|
+1740628131495242710,Router,1740388742240035792
|
|
|
|
262
|
+1740628131495249317,Cybersecurity,1740628131495242710
|
|
|
|
263
|
+1740628131495255469,Enterprise routers,1740628131495242710
|
|
|
|
264
|
+1740628131495261415,Extenders/mini-routes,1740628131495242710
|
|
|
|
265
|
+1740628131495272210,PoE· AC all-in-one router,1740628131495242710
|
|
|
|
266
|
+1740628131495278114,SOHO broadband router,1740628131495242710
|
|
|
|
267
|
+1740628131495283506,Wi-Fi 4/ Wi-Fi 5 wireless routers,1740628131495242710
|
|
|
|
268
|
+1740628131495289621,Wi-Fi 6 wireless router,1740628131495242710
|
|
|
|
269
|
+1740628131495295219,Wi-Fi 7 wireless router,1740628131495242710
|
|
|
|
270
|
+1740628131495301237,Switchs,1740388742240035792
|
|
|
|
271
|
+1740628131495307234,100 mbit switch,1740628131495301237
|
|
|
|
272
|
+1740628131495318873,2.5G switch,1740628131495301237
|
|
|
|
273
|
+1740628131495324883,Fiber optic transceiver,1740628131495301237
|
|
|
|
274
|
+1740628131495330457,Gigabit switch,1740628131495301237
|
|
|
|
275
|
+1740628131495351185,PoE switch and PoE module,1740628131495301237
|
|
|
|
276
|
+1740628131495357594,Ten gigabit switch,1740628131495301237
|
|
|
|
277
|
+1740628131495363949,Visual security,1740388742240035792
|
|
|
|
278
|
+1740628131495377610,Dark night full-color camera,1740628131495363949
|
|
|
|
279
|
+1740628131495382617,Display products,1740628131495363949
|
|
|
|
280
|
+1740628131495389744,PTZ cameras,1740628131495363949
|
|
|
|
281
|
+1740628131495395613,Sound column products,1740628131495363949
|
|
|
|
282
|
+1740628131495406937,Storage management products,1740628131495363949
|
|
|
|
283
|
+1740628131495412181,Wired network cameras,1740628131495363949
|
|
|
|
284
|
+1740628131495418588,Wireless IP camera,1740628131495363949
|
|
|
|
285
|
+1740628241100001927,Ethernet optical switch,1740628131495088739
|
|
|
|
286
|
+1740628287100002371,Fiber optic transceiver,1740628131495096166
|
|
|
|
287
|
+1740628311814314440,Optical module,1740628131495114986
|
|
|
|
288
|
+1740628376841613521,Enterprise-grade wireless VPN routers,1740628131495135270
|
|
|
|
289
|
+1740628472956366805,Wireless Access Points (APs),1740628131495141945
|
|
|
|
290
|
+1740634759119601361,Wireless bridge/wireless bridge for monitoring,1740628131495148516
|
|
|
|
291
|
+1740634787365527713,Wireless Controller (AC),1740628131495154416
|
|
|
|
292
|
+1740634845886686550,Industrial computer,1740628131495167495
|
|
|
|
293
|
+1740634868100000492,Industrial cybersecurity,1740628131495173418
|
|
|
|
294
|
+1740634895100000654,Industrial Fiber Optic Transceivers Modules,1740628131495178736
|
|
|
|
295
|
+1740634928314219464,Industrial Power Supplies Accessories,1740628131495184721
|
|
|
|
296
|
+1740634945591478433,Industrial routers/gateways,1740628131495190902
|
|
|
|
297
|
+1740634998795438500,Industrial switches,1740628131495195721
|
|
|
|
298
|
+1740635018403329352,Industrial vision,1740628131495201580
|
|
|
|
299
|
+1740635050636749972,Industrial wireless,1740628131495207256
|
|
|
|
300
|
+1740635065128308934,Networking of industrial equipment,1740628131495213319
|
|
|
|
301
|
+1740635079851826125,PCIe wireless network card,1740628131495225527
|
|
|
|
302
|
+1740635105480874722,USB wireless network card,1740628131495231389
|
|
|
|
303
|
+1740635133471141350,Wired network card/adapter,1740628131495237621
|
|
|
|
304
|
+1740635161920456854,Cybersecurity,1740628131495249317
|
|
|
|
305
|
+1740635247726093775,Enterprise routers,1740628131495255469
|
|
|
|
306
|
+1740635265998147934,Extenders/mini-routes,1740628131495261415
|
|
|
|
307
|
+1740635304775724782,PoE· AC all-in-one router,1740628131495272210
|
|
|
|
308
|
+1740635319689738805,SOHO broadband router,1740628131495278114
|
|
|
|
309
|
+1740635657976219497,Hydraulic Shock Absorbe,1740133289853630501
|
|
|
|
310
|
+1740635746731236841,Wi-Fi 4/ Wi-Fi 5 wireless routers,1740628131495283506
|
|
|
|
311
|
+1740635781100002853,Wi-Fi 6 wireless router,1740628131495289621
|
|
|
|
312
|
+1740635836940903207,Wi-Fi 7 wireless router,1740628131495295219
|
|
|
|
313
|
+1740635882100001522,100 mbit switch,1740628131495307234
|
|
|
|
314
|
+1740635929100002107,2.5G switch,1740628131495318873
|
|
|
|
315
|
+1740636257301503394,mini cylinders-MAC,MG,PB,MBL,1740133289853653834
|
|
|
|
316
|
+1740636384100000359,Intermediate relays-RKF,RKL,RKM,RKE,1740540744329110250
|
|
|
|
317
|
+1740636436862759464,Hydraulic Shock Absorbe-ACA,ACJ,1740635657976219497
|
|
|
|
318
|
+1740636467932608237,Fiber optic transceiver,1740628131495324883
|
|
|
|
319
|
+1740636563301133529,Gigabit switch,1740628131495330457
|
|
|
|
320
|
+1740636626983401394,PoE switch and PoE module,1740628131495351185
|
|
|
|
321
|
+1740636647723709413,Ten gigabit switch,1740628131495357594
|
|
|
|
322
|
+1740636705208586290,Dark night full-color camera,1740628131495377610
|
|
|
|
323
|
+1740636746100001277,Standard cylinders-SE,SAI,SC,SAU,1740133289853653834
|
|
|
|
324
|
+1740636768100000390,Display products,1740628131495382617
|
|
|
|
325
|
+1740636793390604507,PTZ cameras,1740628131495389744
|
|
|
|
326
|
+1740636820667020397,Sound column products,1740628131495395613
|
|
|
|
327
|
+1740636915918342963,Storage management products,1740628131495406937
|
|
|
|
328
|
+1740637011477771328,Rotary cylinders-HRQ,ACK,1740133289853653834
|
|
|
|
329
|
+1740637084559275407,Wired network cameras,1740628131495412181
|
|
|
|
330
|
+1740637176394450463,Wireless IP camera,1740628131495418588
|
|
|
|
331
|
+1740638067129654533,Guided cylinders-TCM,1740133289853653834
|
|
|
|
332
|
+1740638356645759814,Compact cylinders-ACK,SDA,ACQ,1740133289853653834
|
|
|
|
333
|
+1740638519100000672,Finger cylinders-HFC,HFD,HFY,1740133289853653834
|
|
|
|
334
|
+1740638593137501269,Miniature free-mount cylinders-MU,1740133289853653834
|
|
|
|
335
|
+1740638649459919860,Multi-position fixed cylinder-MD,1740133289853653834
|
|
|
|
336
|
+1740639109192579650,General Purpose Relay-REH,RFT,RUB,RGF,1740540744329110250
|
|
|
|
337
|
+1740640221743882170,AB,1740640221742360994
|
|
|
|
338
|
+1740640221743899330,AB servo feed back line,1740640221743882170
|
|
|
|
339
|
+1740640221743907110,MPL Low inertia servomotor,1740640221743882170
|
|
|
|
340
|
+1740640221743914610,TL and TLY compact service,1740640221743882170
|
|
|
|
341
|
+1740640221743920239,VPL Series Service Motor,1740640221743882170
|
|
|
|
342
|
+1740640808813120826,AB,1740640221743899330
|
|
|
|
343
|
+1740640827761782941,AB,1740640221743907110
|
|
|
|
344
|
+1740640841331791744,AB,1740640221743914610
|
|
|
|
345
|
+1740640869199602613,AB,1740640221743920239
|
|
|
|
346
|
+1740641583226511879,DELTA,1740640221742360994
|
|
|
|
347
|
+1740641583226529161,frequency converter price list,1740641583226511879
|
|
|
|
348
|
+1740641715588807735,DELTA,1740641583226529161
|
|
|
|
349
|
+1740644647506374856,power supply,1740204751295231178
|
|
|
|
350
|
+1740644820235508593,type-contact,1740644833285737571
|
|
|
|
351
|
+1740644833285737571,contact,1740204846975212584
|
|
|
|
352
|
+1740644911884830496,LAN-cable,1740204846975232824
|
|
|
|
353
|
+1740644991844027330,PLC,1740204496795912169
|
|
|
|
354
|
+1740644991844046858,HMI,1740204496795912169
|
|
|
|
355
|
+1740644991844055259,frequency transformer,1740204496795912169
|
|
|
|
356
|
+1740645049100001834,frequency transformer,1740204496795934912
|
|
|
|
357
|
+1740645140343687522,resistance,1740204496795942275
|
|
|
|
358
|
+1740645183921585771,power supply,1740204682100001669
|
|
|
|
359
|
+1740645249717644138,diy-more,-3
|
|
|
|
360
|
+1740645345100001810,circuit board,1740645369668483435
|
|
|
|
361
|
+1740645369668483435,circuit board,1740645249717644138
|
|
|
|
362
|
+1740648082474209137,GONEO,-3
|
|
|
|
363
|
+1740648082474224139,Goneo overseas socket,1740648082474209137
|
|
|
|
364
|
+1740648082474231535,Geneo International Interlude,1740648082474224139
|
|
|
|
365
|
+1740648116762627698,Geneo International Interlude,1740648082474231535
|
|
|
|
366
|
+1740705655279596214,phoenix power supply,1740705684548892110
|
|
|
|
367
|
+1740705684548892110,phoenix,-1
|
|
|
|
368
|
+1740705703761727311,power supply,1740705684548892110
|
|
|
|
369
|
+1740705786787784151,EATON,-1
|
|
|
|
370
|
+1740705786787797193,ups power supply,1740705786787784151
|
|
|
|
371
|
+1740705966345822426,eaton ups power supply,1740705786787797193
|
|
|
|
372
|
+1740706095437227956,eaton fuse,1740706131480147977
|
|
|
|
373
|
+1740706131480147977,eaton fuse,1740705786787784151
|
|
|
|
374
|
+1740706280726584952,shanhao-kj,-3
|
|
|
|
375
|
+1740706280726597174,relay module,1740706280726584952
|
|
|
|
376
|
+1740706355100000811,relay module,1740706280726584952
|
|
|
|
377
|
+1740706780936777779,Lab supplies,1740709417544065857
|
|
|
|
378
|
+1740707127530551519,AirTAC Fittings,1740453441694351110
|
|
|
|
379
|
+1740707138337405933,Fittings,1740707127530551519
|
|
|
|
380
|
+1740707421100001176,Precision slide cylinder,1740453441694351110
|
|
|
|
381
|
+1740707570229606156,HLQ Series Double Axis Precision Slide Table Cylinders (Recirculating Ball),1740707421100001176
|
|
|
|
382
|
+1740709081812169666,CHCC,-3
|
|
|
|
383
|
+1740709081812182359,Cable ties,1740709081812169666
|
|
|
|
384
|
+1740709184621838660,BULL,-3
|
|
|
|
385
|
+1740709184621851858,Power strips,1740709184621838660
|
|
|
|
386
|
+1740709259219243247,WNE,-3
|
|
|
|
387
|
+1740709259219255599,Multi-function electric pen,1740709259219243247
|
|
|
|
388
|
+1740709305203332899,LJ,-3
|
|
|
|
389
|
+1740709305203356993,Pneumatic joints,1740709305203332899
|
|
|
|
390
|
+1740709363449530211,LZ,-3
|
|
|
|
391
|
+1740709363449542586,On-off valves,1740709363449530211
|
|
|
|
392
|
+1740709417544053447,LUOTAI,-3
|
|
|
|
393
|
+1740709417544065857,Lab supplies,1740709417544053447
|
|
|
|
394
|
+1740709477652948638,KSK,-3
|
|
|
|
395
|
+1740709477652962532,Thickened corner code,1740709477652948638
|
|
|
|
396
|
+1740722435880680451,BI-NI-FI Series,1740722635837639118
|
|
|
|
397
|
+1740722466953104785,E2E Series,1740722635837639118
|
|
|
|
398
|
+1740722635837624470,Domenzi,-3
|
|
|
|
399
|
+1740722635837639118,Proximity switches,1740722635837624470
|
|
|
|
400
|
+1740722635837646950,Photoelectric switches,1740722635837624470
|
|
|
|
401
|
+1740722740763961825,Terminal blocks,1740381458773048901
|
|
|
|
402
|
+1740722740763977321,Terminal block accessories,1740381458773048901
|
|
|
|
403
|
+1740722887562481910,M12,1740722635837639118
|
|
|
|
404
|
+1740723584285184606,M18,1740722635837639118
|
|
|
|
405
|
+1740724152822793972,Medium load mold spring,-3
|
|
|
|
406
|
+1740724241626771571,RF connector,-3
|
|
|
|
407
|
+1740725342968624192,M30,1740722635837639118
|
|
|
|
408
|
+1740725407844921166,M8,1740722635837639118
|
|
|
|
409
|
+1740725459459970713,NBB-NBN Seires,1740722635837639118
|
|
|
|
410
|
+1740725487719752860,Rectangle NI Series,1740722635837639118
|
|
|
|
411
|
+1740725531352700317,Rectangle SN-TL-PL,1740722635837639118
|
|
|
|
412
|
+1740725577110265290,CDD Seires,1740722635837646950
|
|
|
|
413
|
+1740725595995011162,E3F Seires,1740722635837646950
|
|
|
|
414
|
+1740725622100000699,E3FA Seires,1740722635837646950
|
|
|
|
415
|
+1740725649602038369,E3FM Seires,1740722635837646950
|
|
|
|
416
|
+1740725676100000630,E3JK Seires,1740722635837646950
|
|
|
|
417
|
+1740727174680572532,smc,1740640221742360994
|
|
|
|
418
|
+1740727376100000906,Reed sensor,1740192644100000417
|
|
|
|
419
|
+1740728610616204948,Schneider,-1
|
|
|
|
420
|
+1740728610616219995,Low-voltage,1740728610616204948
|
|
|
|
421
|
+1740728653265687795,Industrial Automation and Control,1740728610616204948
|
|
|
|
422
|
+1740730292656428776,Electrical connector,-3
|
|
|
|
423
|
+1740732268866014434,phoenix,1740732268864577229
|
|
|
|
424
|
+1740732268866027494,Distribution blocks,1740732268866014434
|
|
|
|
425
|
+';
|
|
40
|
|
426
|
|
|
41
|
/**
|
427
|
/**
|
|
42
|
* @remark :统一更新路由
|
428
|
* @remark :统一更新路由
|
|
@@ -46,15 +432,64 @@ class LyhImportTest extends Command |
|
@@ -46,15 +432,64 @@ class LyhImportTest extends Command |
|
46
|
* @time :2023/11/20 15:13
|
432
|
* @time :2023/11/20 15:13
|
|
47
|
*/
|
433
|
*/
|
|
48
|
public function handle(){
|
434
|
public function handle(){
|
|
49
|
- ProjectServer::useProject(2385);
|
435
|
+ ProjectServer::useProject(3283);
|
|
50
|
echo date('Y-m-d H:i:s') . 'start' . PHP_EOL;
|
436
|
echo date('Y-m-d H:i:s') . 'start' . PHP_EOL;
|
|
51
|
// $this->importCustomModule($this->data);
|
437
|
// $this->importCustomModule($this->data);
|
|
52
|
- $this->newsImportCustom();
|
438
|
+ $this->importProductCategory($this->data,3283);
|
|
|
|
439
|
+ $this->handleCatePid();
|
|
53
|
DB::disconnect('custom_mysql');
|
440
|
DB::disconnect('custom_mysql');
|
|
54
|
echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
|
441
|
echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
|
|
55
|
}
|
442
|
}
|
|
56
|
|
443
|
|
|
57
|
/**
|
444
|
/**
|
|
|
|
445
|
+ * @remark :导入分类
|
|
|
|
446
|
+ * @name :importProductCategory
|
|
|
|
447
|
+ * @author :lyh
|
|
|
|
448
|
+ * @method :post
|
|
|
|
449
|
+ * @time :2025/3/3 15:59
|
|
|
|
450
|
+ */
|
|
|
|
451
|
+ public function importProductCategory($text,$project_id){
|
|
|
|
452
|
+ //设置对应管理数组
|
|
|
|
453
|
+ $key_val = [];
|
|
|
|
454
|
+ $arr = explode("\n", $text);
|
|
|
|
455
|
+ foreach ($arr as $val){
|
|
|
|
456
|
+ $cate_arr = explode(",", $val);
|
|
|
|
457
|
+ $key_val[$cate_arr[1]] = $cate_arr[1];
|
|
|
|
458
|
+ $saveData = [
|
|
|
|
459
|
+ 'project_id'=>$project_id,
|
|
|
|
460
|
+ 'title'=>$cate_arr[1],
|
|
|
|
461
|
+ 'seo_title'=>$cate_arr[0],
|
|
|
|
462
|
+ 'seo_des'=>$cate_arr[2]
|
|
|
|
463
|
+ ];
|
|
|
|
464
|
+ $cateModel = new Category();
|
|
|
|
465
|
+ $id = $cateModel->addReturnId($saveData);
|
|
|
|
466
|
+ $route = RouteMap::setRoute($cate_arr[1],RouteMap::SOURCE_PRODUCT_CATE,$id,$project_id);
|
|
|
|
467
|
+ $cateModel->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
468
|
+ }
|
|
|
|
469
|
+ return true;
|
|
|
|
470
|
+ }
|
|
|
|
471
|
+
|
|
|
|
472
|
+ public function handleCatePid(){
|
|
|
|
473
|
+ $cateModel = new Category();
|
|
|
|
474
|
+ $list = $cateModel->list([],'id',['*'],'asc');
|
|
|
|
475
|
+ foreach ($list as $k => $v){
|
|
|
|
476
|
+ if($v['seo_des'] == 0){
|
|
|
|
477
|
+ $pid = 0;
|
|
|
|
478
|
+ }else{
|
|
|
|
479
|
+ $info = $cateModel->read(['seo_title'=>$v['seo_des']],['id']);
|
|
|
|
480
|
+ if($info !== false){
|
|
|
|
481
|
+ $pid = $info['id'];
|
|
|
|
482
|
+ }else{
|
|
|
|
483
|
+ $pid = 0;
|
|
|
|
484
|
+ }
|
|
|
|
485
|
+ }
|
|
|
|
486
|
+ //更新pid
|
|
|
|
487
|
+ $cateModel->edit(['pid'=>$pid],['id'=>$v['id']]);
|
|
|
|
488
|
+ }
|
|
|
|
489
|
+ return true;
|
|
|
|
490
|
+ }
|
|
|
|
491
|
+
|
|
|
|
492
|
+ /**
|
|
58
|
* @remark :导入扩展模块数据
|
493
|
* @remark :导入扩展模块数据
|
|
59
|
* @name :importCustomModule
|
494
|
* @name :importCustomModule
|
|
60
|
* @author :lyh
|
495
|
* @author :lyh
|