CAFE_General 0.3.79 → 0.3.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/CAFE_General.rb +5 -5
- 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: 4af8fcaf2e0b26ad8af60c7c569b5b694353a5818a3b8292160efbd001b3599b
|
4
|
+
data.tar.gz: f500a9e36ec9a1b50089ee7af8f987a8c42ad31713b95238fcbc27f9f0f798d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f28d15ddd5e3e5cab118253203ae96e709589da8f355c5435cbc756a30800f911991f744d6fc8371ad17c195ba9d753db95ed2b3017d3ceb8a14ba260e83c74
|
7
|
+
data.tar.gz: 21aa6a2f4c1eafaac7ca3fb112cc54cad7d4bcd703b57fe51b6181c3e69b1d795373baf6629ab1011720ecfa068691b06c900af93643fc2c436877a51de8f4c7
|
data/lib/CAFE_General.rb
CHANGED
@@ -1498,9 +1498,9 @@ class Wordpress
|
|
1498
1498
|
json['url'] = '%2Fbbs%2FbuyListManager7.php'
|
1499
1499
|
json['mb_id'] = user_id.to_s
|
1500
1500
|
json['mb_password'] = user_pw.to_s
|
1501
|
-
http = HTTP.post('
|
1501
|
+
http = HTTP.post('https://marketingduo.co.kr/bbs/login_check.php', :form => json)
|
1502
1502
|
if http.to_s.length == 0
|
1503
|
-
http = HTTP.get('
|
1503
|
+
http = HTTP.get('https://marketingduo.co.kr/bbs/buyListManager7.php')
|
1504
1504
|
noko = Nokogiri::HTML(http.to_s)
|
1505
1505
|
c = noko.xpath('//*[@id="at-main"]/div/table/tbody').to_s.split('<tr>').length-1
|
1506
1506
|
for n in 1..c
|
@@ -1527,7 +1527,7 @@ class Wordpress
|
|
1527
1527
|
json['mb_id'] = 'marketingduo'
|
1528
1528
|
json['mb_password'] = 'mhhs0201'
|
1529
1529
|
|
1530
|
-
http = HTTP.post('
|
1530
|
+
http = HTTP.post('https://marketingduo.co.kr/bbs/login_check.php', :form => json)
|
1531
1531
|
cookie = Hash.new
|
1532
1532
|
http.cookies.each do |i|
|
1533
1533
|
cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
|
@@ -1573,14 +1573,14 @@ class Wordpress
|
|
1573
1573
|
return 1
|
1574
1574
|
else
|
1575
1575
|
puts '신규 기기 등록'
|
1576
|
-
http = HTTP.cookies(cookie).post('
|
1576
|
+
http = HTTP.cookies(cookie).post('https://marketingduo.co.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
|
1577
1577
|
token = http.to_s.split('token":"')[1].split('"')[0]
|
1578
1578
|
year = Time.now.to_s.split(' ')[0].split('-').join('')
|
1579
1579
|
year2 = Time.now.to_s.split(' ')[1].split(':').join('')
|
1580
1580
|
uid = year+year2
|
1581
1581
|
puts uid
|
1582
1582
|
json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'--카페 자동 글쓰기 프로그램', 'wr_content' => mac_address}
|
1583
|
-
http = HTTP.cookies(cookie).post('
|
1583
|
+
http = HTTP.cookies(cookie).post('https://marketingduo.co.kr/bbs/write_update.php', :form => json)
|
1584
1584
|
return 1
|
1585
1585
|
end
|
1586
1586
|
end
|