Jump to content

Recommended Posts

8 hours ago, Sugik Bangil said:

spacer.png

 

how to turn off OTP. my account is like the picture above. but still asks for OTP.

i can not remember...but maybe it was in .

t3GroyE.png

Your picture same my pictue :167788130085140: ... so website still required OTP ..maybe your shopee website ... it maybe use some trick..but i dont know that trick ..so sorry :167788223418464:

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites
11 hours ago, Thiên Chi Kiều Nữ said:

i can not remember...but maybe it was in .

t3GroyE.png

Your picture same my pictue :167788130085140: ... so website still required OTP ..maybe your shopee website ... it maybe use some trick..but i dont know that trick ..so sorry :167788223418464:

no problem bro. now I can log in with OTP.

spacer.png

spacer.png

 

but I have a new problem, how can I be able to checkout successfully bro. Can you help me. :a03:

Edited by Sugik Bangil

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites

Các bác cho e hỏi cái cơ chế đăng nhập shopee mà dùng cookie là như nào nhỉ?
Nhóm m có bài nào nói về cái đó ko. Cho e xin vs. E tìm mãi ko thấy

Edited by Vũ Công Hào
E miêu tả cho rõ câu hỏi thôi :)

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites
3 hours ago, Vũ Công Hào said:

Các bác cho e hỏi cái cơ chế đăng nhập shopee mà dùng cookie là như nào nhỉ?
Nhóm m có bài nào nói về cái đó ko. Cho e xin vs. E tìm mãi ko thấy

Bạn xem ví dụ thứ 3 hoặc post thứ 2 trong bài này nhé.

Quote

 

nhập cookie vào và gửi request đi.

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites
26 minutes ago, Thiên Chi Kiều Nữ said:

Bạn xem ví dụ thứ 3 hoặc post thứ 2 trong bài này nhé.

nhập cookie vào và gửi request đi.

enter what cookies? instead of being saved when we successfully logged in. because I only use HTTPRequest once. sorry if wrong, I am still a newbie. :classic_biggrin:

spacer.png

and this is my code. is there something wrong? thanks before :c04:

        private void CheckoutShopee(string ShopID, string ModleID, string ItemID, string ItemGrupID, string PromID, string Price)
        {
            string DataPost = @"{
                                    ""free_shipping_voucher_info"": {
                                        ""free_shipping_voucher_code"": null,
                                        ""free_shipping_voucher_id"": 0
                                    },
                                    ""platform_vouchers"": [],
                                    ""selected_shop_order_ids"": [
                                        {
                                            ""item_briefs"": [
                                                {
                                                    ""add_on_deal_id"": null,
                                                    ""applied_promotion_id"": " + PromID + @",
                                                    ""cart_item_change_time"": " + TimeStampNow() + @",
                                                    ""is_add_on_sub_item"": false,
                                                    ""item_group_id"": " + ItemGrupID + @",
                                                    ""itemid"": " + ItemID + @",
                                                    ""modelid"": " + ModleID + @",
                                                    ""offerid"": null,
                                                    ""price"": " + Price + @",
                                                    ""quantity"": 1,
                                                    ""status"": 1
                                                }
                                            ],
                                            ""shop_vouchers"": [],
                                            ""shopid"": " + ShopID + @"
                                        }
                                    ],
                                    ""use_coins"": false
                                }";
            request.Referer = "https://shopee.co.id/cart";
            request.AddHeader("x-csrftoken", Csrf_Token);
            request.AddHeader("x-requested-with", "XMLHttpRequest");
            request.AddHeader("x-shopee-language", "id");
            request.AddHeader("x-api-source", "pc");
            HttpResponse Rs = request.Post("https://shopee.co.id/api/v4/cart/checkout", DataPost, "application/json");
            rtbLog.Text += Rs.ToString() + Environment.NewLine + Environment.NewLine;
        }

 

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites
1 hour ago, Sugik Bangil said:

enter what cookies? instead of being saved when we successfully logged in. because I only use HTTPRequest once. sorry if wrong, I am still a newbie. :classic_biggrin:

spacer.png

and this is my code. is there something wrong? thanks before :c04:


        private void CheckoutShopee(string ShopID, string ModleID, string ItemID, string ItemGrupID, string PromID, string Price)
        {
            string DataPost = @"{
                                    ""free_shipping_voucher_info"": {
                                        ""free_shipping_voucher_code"": null,
                                        ""free_shipping_voucher_id"": 0
                                    },
                                    ""platform_vouchers"": [],
                                    ""selected_shop_order_ids"": [
                                        {
                                            ""item_briefs"": [
                                                {
                                                    ""add_on_deal_id"": null,
                                                    ""applied_promotion_id"": " + PromID + @",
                                                    ""cart_item_change_time"": " + TimeStampNow() + @",
                                                    ""is_add_on_sub_item"": false,
                                                    ""item_group_id"": " + ItemGrupID + @",
                                                    ""itemid"": " + ItemID + @",
                                                    ""modelid"": " + ModleID + @",
                                                    ""offerid"": null,
                                                    ""price"": " + Price + @",
                                                    ""quantity"": 1,
                                                    ""status"": 1
                                                }
                                            ],
                                            ""shop_vouchers"": [],
                                            ""shopid"": " + ShopID + @"
                                        }
                                    ],
                                    ""use_coins"": false
                                }";
            request.Referer = "https://shopee.co.id/cart";
            request.AddHeader("x-csrftoken", Csrf_Token);
            request.AddHeader("x-requested-with", "XMLHttpRequest");
            request.AddHeader("x-shopee-language", "id");
            request.AddHeader("x-api-source", "pc");
            HttpResponse Rs = request.Post("https://shopee.co.id/api/v4/cart/checkout", DataPost, "application/json");
            rtbLog.Text += Rs.ToString() + Environment.NewLine + Environment.NewLine;
        }

 

this quote i reply for @Vũ Công Hào, not for you ...

You need screen shot data in Request Header .. and show your error .. i still dont know where you error..

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites
On 4/9/2020 at 11:24, Đoàn Minh Tâm said:

mình cũng gặp tình trạng như bạn.
cái chuỗi phía sau if-none-match-: 55b03-af4ea139617075b18fc3f53eb090a0e9 => af4ea139617075b18fc3f53eb090a0e9 : ko biết tạo từ đâu.

Phần này có ai có giải pháp chưa ạ. Em cũng gặp tình huống tương tự :(

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites
On 10/3/2021 at 10:18, sonnh said:

Phần này có ai có giải pháp chưa ạ. Em cũng gặp tình huống tương tự :(

 

On 4/9/2020 at 11:24, Đoàn Minh Tâm said:

mình cũng gặp tình trạng như bạn.
cái chuỗi phía sau if-none-match-: 55b03-af4ea139617075b18fc3f53eb090a0e9 => af4ea139617075b18fc3f53eb090a0e9 : ko biết tạo từ đâu.

Tạo bừa bạn ơi, tôi cũng gặp tình trạng tương tự khi ko có mã thì nó trả về sản phẩm ảo,  làm 1 function gen 1 cái mã loằng ngoằng vào cho đẹp chứ thực ra bạn nhét cái gì vào nó cũng trả về sản phẩm thật, miễn đừng để trường if-none-match trống. 

function genIfNoneMatch(len) {
    const hex = '0123456789ABCDEF';
    let output = '';
    for (let i = 0; i < len; ++i) {
        output += hex.charAt(Math.floor(Math.random() * hex.length));
    }
    return output.toLowerCase();
}

 

Edited by Cong

Chia sẻ bài đăng này


Link tới bài viết
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Trả lời chủ đề này...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...