package orderrpcv2 import ( "testing" "git.tetele.net/tgo/crypter" ) func Test_CreateByCart(t *testing.T) { // products := []map[string]string{ // map[string]string{ // "product_id": "19", // "sku_id": "6", // "quantity": "3", // }, // map[string]string{ // "product_id": "26", // "quantity": "4", // }, // } // data := map[string]interface{}{ // "product": products, // "name": "5BC02AB31C", // "mobile": "326598744", // "user_id": "2", // "quantity": "3", // "business_id": "1", // "sku_id": "5", // } // ret, err := CreateByCart("100064", "shop_v2", data) // t.Log(ret) // t.Log(err) res_data := "C424482524D52387D0DBAB16C445A835DF6AC84539A1EBD2517BB1F3537547D9FA9F4762DFA0C787BAB99D19743B04D8CA8895E21B85A5160D67EB34943C7B2DB6BC02324F62E0AABD844D4B60759F7697C16F5118577E0345ACB949BF03BF76958D0D6C61FF4D44219DBE31A7D6DF0D2FC235073A9FD7339C3B75A31A5C2DE00E6B98C71226D509B8A17703B8968D4A06283C0491B09D3B8F65C9EC95F985652113F01A6AA955584984CBAE28DA237B5415B41C6AAD332CAA7F6916915EF67610EE6BDAD43EA69C265905A03CBBDBAE9F75B92D77BD8DF5B2D7B3370DBEFE1EE2CE1DE76C5E0F62EA798FFE8C5CFDFE6DD6F07B52E5FCA506F22E8D7A0F192D07ACDAD3C39C447FA1E21B870AAECE011E43A72208684A2B4620C18F073682BE8CD3F2FE4FB2E66ED749168764B30208FC2B3D1320CD65509B62660E3528E107DA0B97F9EAE7AB6ECE9167B2CC3172547A58268CD91B7BD7611EF1C15EA16D3B26811B5C00AF04DDCBB5985853E312C5A8442818744021EE022F2027792AD47F86B600C12431D39D7787A2BDD1817E22C9EA496478C79702EFBA3B3AB8D9FA8BB5B4AB9B524B50D8F7CB8D3AB591AE206F2AD120D6B6E241B7705630B04FE47340C9CC92D0F705FB15D7C981B400F924B98DD269A52459445001A6994BB706D5D852E0B620E5B180D688ADBF0C144116E648B76C996E2F2B03FBBD8364E2AFC60D23425233AE06265AE8F9B16BD93AB42E63BCC2F5119F103505FBD76BEBE5196C429A3401331176CA0ECB1A1F1893EC942B0203F2181CAE9D013DD5DBA5765E7A5DC81241B068156C34CD565E132EDC4F116A1A80191E56EE5731B933B68B856B0099C2D823EFECB48E58F9F6FBC986E5FD268B39F4AA014443224B07DE33344FE45CA7736336111191A95EA7C1898DD56566C914EE890C35AE17E48D478BECC89E6922BB7807D1FD27D428A7348587E2DE958CB78D33D2B96BD3B9A55ED65A3F2AF5FC05060F149D76820E0CFA4B4A0E2646286E2C4A20EA7F437119751626A5043AE8E1D4BF7142D638B656C28899C5B3A114AD561B6B2E3BD658F90174B99E9AE8B15320A4E17043DF3926FC90560F23478711C1635612B425CDAFBD85297EC4A29BA076DBA801D9E728298D83A953214A19D32298FB387067EDF84735C29FCC290987B2DFBAE47CADE6596E1076A314916A87D8672FAD0D4132CAEFE0B81D5140DC1F526E580A3A89627B8EE8A598E78D035A6B52036218F025F17CDB0E18C9DFF6D8A96700232550CE7B8194A0C9E2DDB50775926E94A1A53C5DCAB877BBC1F7FDC09C99C9EEE5F4E4EAB150BF1835E79393E1B6874A04C222AC1EE5516EB24E335ED0D83EE916E95C7BD36EC19A789E100A00844D4A5A12AAE33D30A1A2D0FB2D9F6077ED21FBBFC8A1F7DC606C94D2AB744EF8CF8A7310AFEB4FB6A1954C167FC03DFE3E922F10C892EC12CE22A125CA4CB3975E2CF4B87EBDF5DCC3043C02CDA04B146D09BDE91B53AD112A23F42FEE54B2678E37F8D84CDC472FFEDA2B7F9C04AAE21DE00C3FDC49060DA6E96D8A92C052288F0D85AC84D292995D7B6E5DCF4DFC975177DE357DC3440A1A169785B3CA8546DBFF9C408D9FB94F571F3A6A9BAAE2A4DCEA770086FC1C34BFDD76207D2D682553C3007ADD29D1B7E22F193C69D199321013B2F427EF847036A21C72CF8575298C17A4E3BF4319E8EAA3A194B5B775B21AB595F1AB1EC83EA5BA326F84B82EA204912F5CC07D6817B6DD3622B9F0F1447E8EF360B4F65D6EC65AADD294FD14BC19879D2C34D2C6CED74036C248B88AD7DCCFDC8268AD2B44BACD85D7B82B279A5678D96662D4EFF91E32FF24668AE2F68052DD1656DE2403BF058E7406EB3D58D41D522E5F8D33A0C1EB40819686C48B6DE19544F0B64754A88FC7A327BD084D77FA488347F8981BC55C0D9E387921F893CCEB8EFBFA37750C179702F3260DBA008CAE2765BB208A0FF53CD6DBAF909C51415A6534F7B39F662064C95CEC60026409E78D5FAEC087B420B7214DFC4DDA25A5DED13DC21D2CA84496ACD465142181790C32F604E53BB3C832DCA74983156210D59B79D87010ACDFE4AEFCA6F1B4D195D559ACF00D5E44DA57F9D42A5EC6A54E58D5F8F8FFF032F8773FCF10929A01AA2F72766C7573AE264F5376A3AA3798AF635DB619D7E84FB48579AE3A4E4B32610CEB080FBA96CD048EDFDB7DCE0935B8571237942E14F1D009F728485C31C9936754F4E25FB22E4033D692EFC7DFC34CCDC0F605879D8DA3C33578B31DFC8EEFDFEEBF077CABC07ED0C4AB4CDDD4E1CEFBF23B506CD9A1FB7257D38A460443D88F4AC03903550ADBB16A049A7BEC4EC6732666407F4B7D60FBA81FCB12DA6207427F6EF1E79A4CBE31B0BBE6D9DBCEF27DEE7B1A557892876D9AD57443EBE3B8B369AC69018B25B5AB3B6E2FFD5C8A5A195594A5DB6CDCBE7DCAAC547AA6A7DDC7F88DE637E81C4A212AA17798AEA8D34B2561637D78E8DDDEA7409BD085AC499E0D9E596826D4273C2B950EAB52334D3ED6BC3B95B1B4D415968319025F5AD0EABFFFC3CCD181FB47FD0BD28B6AAF60F9B981BBD7AE4552F89E7D51064B9237AD7F5EF4C70BECF1E6605F9872F74A2E7441E42E08516543D58E994BDB420CBE22692834830ABA0FC60086F3762231DF088A8C8FB6CF552EF29717547F30188C658EDC9FAB233CA1AE6C959CCFCB4AA935FAD2830B14B6CF746BFA2956B42392D45CC0EC0B5E07F47989DE06472186EB3D27B67595FF6374E69CF731EDFF8B8E30E167B860F1E0B104E5374581EC41AFB52E650274AC56D1A9B55D54B03DC6496282AD544FA6C1983CD53C35D7807AEF07460DE16565C7C0F3DD632A4B8E36A9493F0172E57311EF3DCAF9B25433FDE87CE99822EAA4E40764DCC34BC5BD17A9343EAE0206B54D94DEA5D5CE041146E751A718F1114705B55A3B4839959288F2F420175CBFA197B6B2AE28B62B0352CF83F5FD9B7E4AC89F017C22D53F0FD87B726908F0F3806F69DFCD53CC120B86A4912F38B9220172BEAA3C4B41ECB2E9A1F691A7BEDEEDE5EDD943C81252287017F148CFE9978697B2F84A291FCDED4B3BEBCCF9F56B9A84A5B0C7778BF0D7CE103A74B737A4F786D7B5B90CFFCA0C62C4D628C19F9F6D7EC3534400025E7843C9A3083AD8B4AF0A04B4CC92B58C63887AF8F825B1B27EFF8140732F0663C6D336B80293984FA53A63E1CD8EABCA21DF3D3868276C5B2A92F2B4483A1E2DEA66A71271F0513D5E31C52D7D855E921C70F3B7DB4E78AF947FC59C6D11AA5F955B4591E5023AE23E9CC8F13BC5F26FDFA9B3B0C2D9A7689F520306A87DEC0F3C63C8D80A4F6DF19598411B7D9AB9CC10296366FD93CDBFA72FD2658DBFB0F4EAA0E3731C522E586510467292CC3294B8C04ED02384ACB5DC4CA8FF2C1B63CE0052CD671E80F11C0F66D08CD373F31EDAB9A6DDF2EA4673E13060074DAB5C26DD6997ADB4E5D6EED0F8CD417302D1E770B20B0AC8DCAB4F6550E8D8D0AF37F2D97A5133DBB0EE6F44BB7898024FE1AF381AAE05D8E418B35C3718717E071389FBAE920C95B0AD1CDF8DE7C465AA6A2E2662B847DC60BF43B06B4EA3037848FFAB6C6FF1B7C929D8AF9667DF10E07C28B7AB8BA3652B1EC79CF65331FD55E8D2BF569AD0DAB0FEBB6C635C2C04E105F77BB42E7DD19D8649D22113EE283F61D1164F7BFE2459BBFD6AACB4087B3FADE32FA1FE3E1254AC91D77AF414028A8190A706ADE4488AB13EA79426CBED826C2F1CF133CD3F6381DF94CA0914BE2155718004301B4ABE77F301DEFDB8CD3C52123FA2E70E7A2149A1B43EDA87D2863531DBDDD7D2670DA09AB9A6BA3DBB5C15E44DC6EA700895B8C953878E9182DBD9A1F37AEF4F8958F0712BC340FAAA199B47545236C12561F2EA6A54071E6DD24C906D260D215D58EE543B4F64AA8E66E78BD14C348BDFC83555C279F4164FA083021D5E3390FA9DD3828D012A1E322EF73398DD0117A08CDE03CD442F39C6AA3C52871C9E3CB66A37BEDF84E001318F60DB86F0FECA4CAC635918108484CCEE6D0E1151015C3D6E99B77DA027AFA0909E5D4913078813705921B9C7B387B268CE96EC489FA574B8D85139773318E9B6A8C4DE7C9FB4C58B00D46D9F33B408EFF6398ED9F7FBCD4B797EB471FBC127635F24176C6959FE01E95A2625AFD05AEA215832A80E4FFC6CCA2561E2A3C169488A147AE95AE6E3D1937F5004D15861FFDF3E46A44BC38315B7D531455F6C12FC5B01B5FD787629E8B3341CE0F9D06F47C49FE1FFD4D7672538C13F103A0D57E4F520157237B6A3DAF260A89460CEC60809A402955FBDEAD0BC224BACBBDE2DD2C05D09BC522AFE88D412C249C038863D2B6C82AB1FA37CD96D745DCD7A8BB1892A6E711A817907F07A550BAFF097B4264C767E43598780D416727EEE61B9542B2C3C500D219405D72C8AC04A0E1F40EF870AC2E0A10412CD93C5171BDCAB3608C9CAB70A5F731264C6B0D4470725B6CE6D04E0D15BEFDA3D06E769C0E848A6ACA8EF64EF07200B48AC9D2EF4" // time:="1632278142" // sign:="297e837cbd1a5581ca94452423d232c5 data := crypter.DesDe(res_data, DES_KEY) t.Log(data) }