本文主要是介绍【PHP源码】熊猫乐园签到,任务,玩游戏一键完成源代码,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
每天都要签到啥的,麻烦的很,而且有时候可能忘记,干脆封装成写出php代码,宝塔新定时任务,每天00:00自动运行✅,妥妥省心~
<?php
$user = $_REQUEST['u'];
//网页登录手动提取 Cookies 填写到下面数组中
$cookie = array(
"M7mCN+T3sr9nP+Uxxx;", "M7mCN+T3sr9nP+U97bxxxxx;", "M7mCN+T3sr9nP+U97bexxxx;");if($user=="") {echo date("Y-m-d H:i:s")."<br>";for ($i = 0; $i < count($cookie); $i++) {//init_current($cookie[$i]);xddGameGGGGGGGGGG($cookie[$i]);}echo date("Y-m-d H:i:s");return;
}
//1打开获取id 2查询今日是否完成任务 3开始任务保存记录
for ($i = 0; $i < count($cookie); $i++) {//xddGameGGGGGGGGGG($cookie[$i]);
}
$CMCCSCUTT = $cookie[0];
qindaoCall($CMCCSCUTT);
//doneMT($CMCCSCUTT,"TASK_PAD_LLMXZJL");
//补签卡 id=23
//经验卡 id=22 20个
//channel=jtapp&timeMills=1694995175631&flowId=&id=22&num=20
//商品兑换
function exother($CMCCSCUTT,$spID,$spCoun=1){$url = "https://wap.sc.10086.cn/scmccMiniWap/pandaExV2/exother";$form= "channel=jtapp&timeMills=1694112525117&flowId=&id=".$spID."&num=".$spCoun;//channel=jtapp&timeMills=1694112525117&flowId=&id=23&num=1";//channel=jtapp&timeMills=1694995175631&flowId=&id=22&num=20$ret = Httppost_IOS($url,$form,$CMCCSCUTT);echo "exother=".$ret."<br>";return $ret;
}
function qindaoCall($CMCCSCUTT) {$sjjson = SignNewinit($CMCCSCUTT);$jsobj = json_decode($sjjson);// json解析返回信息$snumber = $jsobj->obj->signInfo->allPrize;//obj.signInfo.allPrize[0].canRec//echo count($snumber);//obj.signInfo.isSign$isSign = $jsobj->obj->signInfo->isSign;//isSign: trueecho " signDays=".$jsobj->obj->signInfo->signDays;//signDays: 7echo " bqkNum=".$jsobj->obj->signInfo->bqkNum;//bqkNum: 0 补签卡echo " isSign=";echo $isSign=="1"?"已签":"未签";echo "<br>";for ($i = 0; $i < count($snumber); $i++) {$canRec = $snumber[$i]->canRec;//0可领 1.已领 2未完成$prizeType = $snumber[$i]->F_PRIZE_TYPE;//F_PRIZE_TYPE=3echo "canRec=".$canRec. " prizeType=".$prizeType."<br>";if($canRec == "0") {receive($CMCCSCUTT,$prizeType);//领取累计3,7,15,30天奖励}}
}
function receive($CMCCSCUTT,$prizeType) {$url = "https://wap.sc.10086.cn/scmccMiniWap/pandaSignNew/receive";$form= "prizeType=".$prizeType ;$ret = Httppost_IOS($url,$form,$CMCCSCUTT);echo "receive=".$ret."<br>";return $ret;//
}
function SignNewinit($CMCCSCUTT) {// 签到界面$url = "https://wap.sc.10086.cn/scmccMiniWap/pandaSignNew/init";$form= "" ;$ret = Httppost_IOS($url,$form,$CMCCSCUTT);echo "SignNewinit=".$ret."<br>";return $ret;
}
function done($CMCCSCUTT,$taskId) {// 任务完成$url = "https://wap.sc.10086.cn/scmccMiniWap/pandatask/browse/done";$form=
这篇关于【PHP源码】熊猫乐园签到,任务,玩游戏一键完成源代码的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!