lhj-tools 0.1.63 → 0.1.64
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lhj/command/yapi/yapi_init.rb +1 -1
- data/lib/lhj/command/yapi.rb +1 -9
- data/lib/lhj/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d368ea2cf5928005086cd6dba1f5d66446a4815c6367efd015295d2363a5f8e
|
4
|
+
data.tar.gz: e1242e6281d858b5f872224ffa002f3445c891ebe0ffd2188ce477ce25aa0d53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523743a35a0fcb52957788287576b6d7833e5ba9112b55ad003382c61e0ddc17b6ea30a97e41d9fcb8f5d41a2b051f6cbeb37942a4aa38d635946d69c2408608
|
7
|
+
data.tar.gz: 7a2c91ada15b17c4b6ef40923f146cc9977c41874441213e52484c3e13d0d29c5b1e4b7d2f364af28cbcda0719cfd668b61660c0bb8d676bc9d4c6e0c09b80e3
|
@@ -71,7 +71,7 @@ module Lhj
|
|
71
71
|
config = YAML.load_file(config_file) if File.exist?(config_file)
|
72
72
|
if cookie && config
|
73
73
|
config['__wpkreporterwid_'] = cookie[:wid]
|
74
|
-
config['_yapi_uid'] = cookie[:uid]
|
74
|
+
config['_yapi_uid'] = cookie[:uid].to_i
|
75
75
|
config['_yapi_token'] = cookie[:token]
|
76
76
|
file_to_save = File.open(config_file, 'w+')
|
77
77
|
YAML.dump(config, file_to_save)
|
data/lib/lhj/command/yapi.rb
CHANGED
@@ -61,7 +61,7 @@ module Lhj
|
|
61
61
|
load_config(config_file)
|
62
62
|
res_body = req_api_model
|
63
63
|
unless res_body['errcode'].to_i.zero?
|
64
|
-
puts '
|
64
|
+
puts '请执行 lhj yapi-init 初始化配置'.red
|
65
65
|
return
|
66
66
|
end
|
67
67
|
return unless res_body && !res_body.empty?
|
@@ -312,12 +312,6 @@ module Lhj
|
|
312
312
|
case type
|
313
313
|
when 'integer'
|
314
314
|
puts_h "@property (nonatomic, assign) NSInteger #{key};"
|
315
|
-
if des.include?('分') || des.include?('0.01')
|
316
|
-
puts_h_red '/////////==========删掉其中一个属性'
|
317
|
-
puts_h_red "@property (nonatomic, strong) MLCentNumber *#{key};"
|
318
|
-
end
|
319
|
-
when 'cent'
|
320
|
-
puts_h "@property (nonatomic, strong) MLCentNumber *#{key};"
|
321
315
|
when 'string'
|
322
316
|
puts_h "@property (nonatomic, copy) NSString *#{key};"
|
323
317
|
when 'number'
|
@@ -347,8 +341,6 @@ module Lhj
|
|
347
341
|
case type
|
348
342
|
when 'integer'
|
349
343
|
puts_h "int #{key};//#{des} #{default}"
|
350
|
-
when 'cent'
|
351
|
-
puts_h "int #{key};//#{des} #{default}"
|
352
344
|
when 'string'
|
353
345
|
puts_h "String #{key};//#{des} #{default}"
|
354
346
|
when 'number'
|
data/lib/lhj/tools/version.rb
CHANGED