This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ahihi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"result_":{"returnCode_":1,"returnMessage_":"Giao dịch thành công","memoizedIsInitialized":-1,"unknownFields":{"fields":{}},"memoizedSize":-1,"memoizedHashCode":0},"memoizedIsInitialized":1,"unknownFields":{"fields":{}},"memoizedSize":-1,"memoizedHashCode":0} | |
| [2022-09-07 19:00:31] [INFO] [ZpiGetPriceListHandler.java ] [34fd0930-98e2-4e79-8b42-b6f16fff7064] Finish in [111] ms, logEntity: {"request":{"mAppUser":"","zlpToken":"","zalopayid":"220901003512962","mAccessToken":"","checksum":"","deviceInfo":{"platform":"","deviceID":"","appVersion":"","distSrc":"","mno":"","sdkVer":"","osVer":"","deviceModel":"","connType":"","longitude":"","latitude":""},"clientid":"11","sig":"34d56ffde59bfe2f643466ed4c0494c74ecb35801641c105b56c4ab4449c05b0","reqdate":1662552031417},"response":{"data":[{"telcocode":"VIETTEL","telcostatus":1,"startdate":0,"enddate":0,"telcoprices":[{"unitprice":10000,"startdate":1662546600000,"enddate":1662569880000,"displaydiscountvalue":10000,"discounttype":3,"discountcompensator":1.0000,"defaultc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2021-03-26 00:04:54 INFO BaseCPSHandler:132 - [CreateMultiBillOrderLogEntity] Finish: {"system":"CPS_CORE","apiname":"ZPICreateMultiBillOrder","requesttype":0,"requestid":0,"request":{"clientid":5,"sig":"be07a10a28de7f6474f14f7844fea612357477bcf6a47b58e4ad76679de2d7e3","reqdate":1616691897836,"data":"{\"appid\":821,\"appinfo\":\"{\\\"appid\\\":821,\\\"supplierid\\\":701,\\\"suppliername\\\":\\\"FE Credit\\\",\\\"icon\\\":\\\"cf_fecredit\\\",\\\"customercode\\\":\\\"20201124-2972033\\\",\\\"providercode\\\":\\\"FECREDIT\\\",\\\"paymentrule\\\":2,\\\"bills\\\":[{\\\"appid\\\":821,\\\"customercode\\\":\\\"20201124-2972033\\\",\\\"supplierid\\\":701,\\\"month\\\":202104,\\\"monthstr\\\":\\\"04/2021\\\",\\\"billid\\\":\\\"20201124-2972033:4:2021\\\",\\\"amount\\\":\\\"12000\\\",\\\"querydate\\\":20210326,\\\"querytime\\\":\\\"1616691893297\\\",\\\"providercode\\\":\\\"FECREDIT\\\",\\\"customername\\\":\\\"NGUYỄN VĂN HẢI\\\",\\\"customeraddress\\\":\\\"\\\",\\\"serviceid\\\":\\\"\\\",\\\"suppliercode\\\":\\\"\\\", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func (h *serviceHandler) GetId(ctx context.Context, | |
| req *id.Request, resp *id.Response) error { | |
| logs.Info("GetId with request: %#v", req) | |
| defer logs.Trace("GetId out: %#v", resp) | |
| t := time.Now().Local() | |
| dt := t.Format("060102") // format time yymmdd | |
| key := fmt.Sprintf("id:%d", req.Type) | |
| curr := h.redis.Incr(key) | |
| val, err := curr.Val(), curr.Err() | |
| if err != nil { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"STEP_1":"h.AutoPayment","STEP_2":"getListCPSAgreementWithStatus","STEP_3":"h.QueryBill","Time":"2020-12-30T12:00:05+07:00","level":"info","msg":"done","queryBillResp":"{\"returnCode\":1,\"returnMessage\":\"Giao dịch thành công.\",\"data\":{\"appid\":821,\"supplierid\":701,\"customercode\":\"1500020009502248\",\"totalamount\":34009468,\"paymentrule\":2,\"billlist\":[{\"appid\":821,\"customercode\":\"1500020009502248\",\"supplierid\":701,\"month\":202101,\"monthstr\":\"01/2021\",\"billid\":\"1500020009502248:1:2021\",\"billtype\":1,\"amount\":34009468,\"querydate\":20201230,\"querytime\":1609304405769,\"providercode\":\"FECREDIT\",\"customername\":\"VŨ ĐỨC HÙNG\",\"customeraddress\":\"\",\"serviceid\":\"\",\"suppliercode\":\"\",\"paymentrange\":\"\",\"paymentfee\":0,\"expireddate\":\"\",\"isprepaid\":false,\"zlppaymentid\":\"FCCARD\",\"exinfo\":\"{\\\"customercode\\\":\\\"1500020009502248\\\",\\\"customername\\\":\\\"VŨ ĐỨC HÙNG\\\",\\\"companyname\\\":\\\"FC\\\",\\\"address\\\":\\\"***7305\\\",\\\"totaldebt\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EVNCPC EVN Miền Trung ACTIVE ^PC03.*,^PC06.*,^PP.* 2 | |
| Update | |
| EVNHN EVN Hà Nội MAINTENANCE 2 | |
| Update | |
| EVNNPC EVN Miền Bắc ACTIVE ^PH.*,^PA19.*,^PA01.*,^PA12.*,^PA11.* 2 | |
| Update | |
| EVNSG EVN Hồ Chí Minh ACTIVE 2 | |
| Update | |
| EVNSPC EVN Miền Nam ACTIVE ^PB14.*,^PB10.* 2 | |
| Update |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "roomTypeFacilityFeed": { | |
| "roomTypeFacilities": { | |
| "roomTypeFacility": [ | |
| { | |
| "hotelId": 10979, | |
| "hotelRoomTypeId": 78145779, | |
| "propertyId": 30, | |
| "propertyName": "Hair dryer", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package db | |
| import ( | |
| "testing" | |
| "github.com/astaxie/beego/logs" | |
| "github.com/astaxie/beego/orm" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Deep diff between two object, using lodash | |
| * @param {Object} object Object compared | |
| * @param {Object} base Object to compare with | |
| * @return {Object} Return a new object who represent the diff | |
| */ | |
| function difference(object, base) { | |
| function changes(object, base) { | |
| return _.transform(object, function(result, value, key) { | |
| if (!_.isEqual(value, base[key])) { |
NewerOlder