11const $ = new Env ( '万达电影' )
22$ . _mi_ = 'senku_wanda_mi_'
33$ . desc = [ ]
4+ $ . signCode = '17787285'
5+ $ . questionCode = '15884027'
46const date = tTime ( new Date ( ) . getTime ( ) )
57
68function getKey ( ) {
@@ -41,15 +43,15 @@ const mx_api = {
4143
4244function sign ( ) {
4345 return new Promise ( ( resolve ) => {
44- const signVal = getKey ( ) [ 'key' ] + '/activityWholeSign/wholeSignUp.apiactivityCode=12786638 &signDate=' + date
46+ const signVal = getKey ( ) [ 'key' ] + '/activityWholeSign/wholeSignUp.apiactivityCode=' + $ . signCode + ' &signDate='+ date
4547 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
4648 mx_api [ 'check' ] = hex_md5 ( signVal )
4749 const url = {
4850 url :'https://activity-api-mx.wandafilm.com/activityWholeSign/wholeSignUp.api' ,
4951 headers :{
5052 'MX-API' :JSON . stringify ( mx_api ) ,
5153 } ,
52- body : 'activityCode=12786638 &signDate=' + date
54+ body : 'activityCode=' + $ . signCode + ' &signDate=' + date
5355 }
5456 $ . post ( url , ( err , resp , data ) => {
5557 try {
@@ -65,15 +67,15 @@ function sign() {
6567
6668function signRecord ( ) {
6769 return new Promise ( ( resolve ) => {
68- const signRecordVal = getKey ( ) [ 'key' ] + '/activityWholeSign/getSignRecord.apiactivityCode=12786638'
70+ const signRecordVal = getKey ( ) [ 'key' ] + '/activityWholeSign/getSignRecord.apiactivityCode=' + $ . signCode
6971 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
7072 mx_api [ 'check' ] = hex_md5 ( signRecordVal )
7173 const url = {
7274 url :'https://activity-api-mx.wandafilm.com/activityWholeSign/getSignRecord.api' ,
7375 headers :{
7476 'MX-API' :JSON . stringify ( mx_api ) ,
7577 } ,
76- body : 'activityCode=12786638'
78+ body : 'activityCode=' + $ . signCode
7779 }
7880 $ . post ( url , ( err , resp , data ) => {
7981 try {
@@ -89,15 +91,15 @@ function signRecord() {
8991
9092function lottery ( ) {
9193 return new Promise ( ( resolve ) => {
92- const signVal = getKey ( ) [ 'key' ] + '/activityWholeSign/prize/lottery.apiactivityCode=12786638 &vcode=&requestId='
94+ const signVal = getKey ( ) [ 'key' ] + '/activityWholeSign/prize/lottery.apiactivityCode=' + $ . signCode + ' &vcode=&requestId='
9395 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
9496 mx_api [ 'check' ] = hex_md5 ( signVal )
9597 const url = {
9698 url :'https://activity-api-mx.wandafilm.com/activityWholeSign/prize/lottery.api' ,
9799 headers :{
98100 'MX-API' :JSON . stringify ( mx_api ) ,
99101 } ,
100- body : 'activityCode=12786638 &vcode=&requestId='
102+ body : 'activityCode=' + $ . signCode + ' &vcode=&requestId='
101103 }
102104 $ . post ( url , ( err , resp , data ) => {
103105 try {
@@ -114,15 +116,15 @@ function lottery() {
114116
115117function question_ ( ) {
116118 return new Promise ( ( resolve ) => {
117- const questionVal = getKey ( ) [ 'key' ] + '/question/qustion/strength.apiactivityCode=15884027'
119+ const questionVal = getKey ( ) [ 'key' ] + '/question/qustion/strength.apiactivityCode=' + $ . questionCode
118120 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
119121 mx_api [ 'check' ] = hex_md5 ( questionVal )
120122 const url = {
121123 url :'https://activity-api-mx.wandafilm.com/question/qustion/strength.api' ,
122124 headers :{
123125 'MX-API' :JSON . stringify ( mx_api ) ,
124126 } ,
125- body : 'activityCode=15884027'
127+ body : 'activityCode=' + $ . questionCode
126128 }
127129 $ . post ( url , ( err , resp , data ) => {
128130 try {
@@ -139,15 +141,15 @@ function question_() {
139141// 获取题目答案
140142function question ( ) {
141143 return new Promise ( ( resolve ) => {
142- const questionVal = getKey ( ) [ 'key' ] + '/question/question_list.apiactivityCode=15884027'
144+ const questionVal = getKey ( ) [ 'key' ] + '/question/question_list.apiactivityCode=' + $ . questionCode
143145 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
144146 mx_api [ 'check' ] = hex_md5 ( questionVal )
145147 const url = {
146148 url :'https://activity-api-mx.wandafilm.com/question/question_list.api' ,
147149 headers :{
148150 'MX-API' :JSON . stringify ( mx_api ) ,
149151 } ,
150- body : 'activityCode=15884027'
152+ body : 'activityCode=' + $ . questionCode
151153 }
152154 $ . post ( url , ( err , resp , data ) => {
153155 try {
@@ -165,15 +167,15 @@ function question() {
165167// 答题
166168function answer ( ) {
167169 return new Promise ( ( resolve ) => {
168- const answerVal = getKey ( ) [ 'key' ] + '/question/qustion/answer.apiactivityCode=15884027 &answer=%7b%221%22%3a%22' + escape ( `${ $ . answer } ` ) . toLowerCase ( ) + '%22%7d'
170+ const answerVal = getKey ( ) [ 'key' ] + '/question/qustion/answer.apiactivityCode=' + $ . questionCode + ' &answer=%7b%221%22%3a%22'+ escape ( `${ $ . answer } ` ) . toLowerCase ( ) + '%22%7d'
169171 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
170172 mx_api [ 'check' ] = hex_md5 ( answerVal )
171173 const url = {
172174 url :'https://activity-api-mx.wandafilm.com/question/qustion/answer.api' ,
173175 headers :{
174176 'MX-API' :JSON . stringify ( mx_api ) ,
175177 } ,
176- body : 'activityCode=15884027 &answer=%7B%221%22%3A%22' + encodeURI ( `${ $ . answer } ` ) + '%22%7D'
178+ body : 'activityCode=' + $ . questionCode + ' &answer=%7B%221%22%3A%22'+ encodeURI ( `${ $ . answer } ` ) + '%22%7D'
177179 }
178180 $ . post ( url , ( err , resp , data ) => {
179181 try {
@@ -190,15 +192,15 @@ function answer() {
190192// 答题后抽奖
191193function drawprize_ans ( ) {
192194 return new Promise ( ( resolve ) => {
193- const drawprizeVal = getKey ( ) [ 'key' ] + '/question/prize/lottery.apiactivityCode=15884027'
195+ const drawprizeVal = getKey ( ) [ 'key' ] + '/question/prize/lottery.apiactivityCode=' + $ . questionCode
194196 mx_api [ 'ts' ] = getKey ( ) [ 'ts' ]
195197 mx_api [ 'check' ] = hex_md5 ( drawprizeVal )
196198 const url = {
197199 url :'https://activity-api-mx.wandafilm.com/question/prize/lottery.api' ,
198200 headers :{
199201 'MX-API' :JSON . stringify ( mx_api ) ,
200202 } ,
201- body : 'activityCode=15884027'
203+ body : 'activityCode=' + $ . questionCode
202204 }
203205 $ . post ( url , ( err , resp , data ) => {
204206 try {
0 commit comments