@@ -1077,9 +1077,21 @@ function getBotSettingKeys(){
10771077 ['text ' =>"نوع ریمارک " ,'callback_data ' =>"wizwizch " ]
10781078 ],
10791079 [
1080- ['text ' =>$ rewaredTime ,'callback_data ' =>'editRewardTime ' ],
1080+ ['text ' =>$ rewaredTime ,'callback_data ' =>'editRewaredTime ' ],
10811081 ['text ' =>"ارسال گزارش درآمد " , 'callback_data ' =>'wizwizch ' ]
10821082 ],
1083+ [
1084+ ['text ' =>$ botState ['cartToCartAutoAcceptState ' ]=="on " ?$ buttonValues ['on ' ]:$ buttonValues ['off ' ],'callback_data ' =>"changeBotcartToCartAutoAcceptState " ],
1085+ ['text ' =>"تأیید خودکار کارت به کارت " ,'callback_data ' =>"wizwizch " ]
1086+ ],
1087+ ($ botState ['cartToCartAutoAcceptState ' ]=="on " ?[
1088+ ['text ' =>($ botState ['cartToCartAutoAcceptType ' ] == "0 " ?"نماینده " :($ botState ['cartToCartAutoAcceptType ' ] == "1 " ?"کاربر " :"همه " )),'callback_data ' =>"changeBotcartToCartAutoAcceptType " ],
1089+ ['text ' =>"نوع تأیید " ,'callback_data ' =>"wizwizch " ]
1090+ ]:[]),
1091+ ($ botState ['cartToCartAutoAcceptState ' ]=="on " ?[
1092+ ['text ' =>($ botState ['cartToCartAutoAcceptTime ' ]??"10 " ) . " دقیقه " ,'callback_data ' =>"editcartToCartAutoAcceptTime " ],
1093+ ['text ' =>"زمان تأیید خودکار " ,'callback_data ' =>"wizwizch " ]
1094+ ]:[]),
10831095 [['text ' =>$ buttonValues ['back_button ' ],'callback_data ' =>"managePanel " ]]
10841096 ]]);
10851097
@@ -5059,6 +5071,7 @@ function getMarzbanUserInfo($server_id, $remark){
50595071 $ info ->subscription_url = $ subLink ;
50605072 curl_setopt ($ curl , CURLOPT_URL , $ panel_url . $ info ->subscription_url );
50615073 curl_setopt ($ curl , CURLOPT_CONNECTTIMEOUT , 3 );
5074+ curl_setopt ($ curl , CURLOPT_RETURNTRANSFER , true );
50625075 curl_setopt ($ curl , CURLOPT_TIMEOUT , 3 );
50635076 $ response = curl_exec ($ curl );
50645077 if ($ response && !curl_error ($ curl )){
0 commit comments