$uid]); return $res; } public static function queryUserBytel($store_id, $tel = 0) { // $json = '{"status":"success","messages":[],"data":{"customrUid":922312867022331106,"customerUid":922312867022331106,"categoryName":"普通","number":"13932800866","name":"张","point":0.00,"discount":100,"balance":0,"phone":"13932800866","qq":"","email":"","address":"","remarks":"","createdDate":"2019-05-03 00:00:00","onAccount":0,"enable":1,"createStoreAppIdOrAccount":"9D5491A79556D828BC80BA6E990EBC84"}}'; // if(self::TEST_DATA){ // return json_decode($json, true); // } $res = self::api($store_id, 'customerOpenApi/queryBytel', ["customerTel" => $tel]); return $res; } public static function addUser($store_id, $param = []) { $res = self::api($store_id, 'customerOpenApi/add', $param); return $res; } public static function updateBalancePointByIncrement($store_id, $param = []) { $res = self::api($store_id, 'customerOpenApi/updateBalancePointByIncrement', $param); return $res; } public static function queryProductCategoryPages($store_id, $param = []) { $res = self::api($store_id, 'productOpenApi/queryProductCategoryPages', $param); return $res; } public static function queryProductPages($store_id, $param = []) { $res = self::api($store_id, 'productOpenApi/queryProductPages', $param); return $res; } public static function queryProductImgPages($store_id, $param = []) { $res = self::api($store_id, 'productOpenApi/queryProductImagePages', $param); // $res = '{"status":"success","messages":[],"data":{"postBackParameter":{"parameterType":"LAST_RESULT_MAX_ID","parameterValue":"332253"},"result":[{"productUid":307524486551868475,"productName":"美汁源爽粒花语红葡萄+玫瑰汁饮料420ml","productBarcode":"6956416205130","imageUrl":"http://pospalstoreimg.area63.pospal.cn:80//productImages/3208961/3e83648f-ebb4-4382-9244-5762dea1c9ca.jpg"},{"productUid":341670696225363202,"productName":"美汁源汁汁桃桃桃汁饮料420ml","productBarcode":"6956416206830","imageUrl":"http://pospalstoreimg.area63.pospal.cn:80//spd/23/638114656312203846.jpg"}],"pageSize":100}}'; // $res = json_decode($res, true); return $res; } public static function queryProductImagesByBarcode($store_id, $uid = 0) { $res = self::api($store_id, 'productOpenApi/queryProductImagesByBarcode', ["productBarcode" => $uid]); // $res = '{"status":"success","messages":[],"data":[{"productUid":163971162588607457,"productName":"黑葡萄雨伞货号19303","productBarcode":"6928265693031","imageUrl":"http://pospalstoreimg.area63.pospal.cn:80/productImages/4953454/354b70f8-6eef-4a99-91ab-0bb60b59b59b.jpg"},{"productUid":163971162588607457,"productName":"黑葡萄雨伞货号19303","productBarcode":"6928265693031","imageUrl":"http://pospalstoreimg.area63.pospal.cn:80/productImages/4953454/585252ba-ae47-4eb6-bd65-44699f1145bf.jpg"},{"productUid":163971162588607457,"productName":"黑葡萄雨伞货号19303","productBarcode":"6928265693031","imageUrl":"http://pospalstoreimg.area63.pospal.cn:80/productImages/4953454/02b8eeff-e19b-4f9f-855c-e7a067383e93.jpg"},{"productUid":163971162588607457,"productName":"黑葡萄雨伞货号19303","productBarcode":"6928265693031","imageUrl":"http://pospalstoreimg.area63.pospal.cn:80/productImages/4953454/9c334ff4-1442-479a-b6a4-3669848637a4.jpg"}]}'; // $res = json_decode($res, true); return $res; } public static function queryProductByUid($store_id, $uid = 0) { // $json = '{"status":"success","messages":[],"data":{"uid":376007949281628195,"categoryUid":1650434916469386247,"name":"a2至初 奶粉婴儿配方奶粉6-12月2段900g 1罐 新西兰进口","barcode":"9421902960017","buyPrice":321.000,"sellPrice":458.00,"sellPrice2":458.00,"stock":100.000,"maxStock":0,"minStock":5.00,"pinyin":"a2nf900g2d","customerPrice":412.00,"description":"","isCustomerDiscount":0,"supplierUid":0,"enable":1,"productionDate":"","createdDatetime":"2022-05-09 14:15:24","updatedDatetime":"2022-06-23 14:51:30","attribute1":"","attribute2":"","attribute3":"","attribute4":"9421902960017","attribute5":"","attribute6":"","attribute10":"100"}}'; // if(self::TEST_DATA){ // return json_decode($json, true); // } $res = self::api($store_id, 'productOpenApi/queryProductByUid', ["productUid" => $uid]); return $res; } public static function queryProductByBarcode($store_id, $Barcode = 0) { // $json = '{"status":"success","messages":[],"data":{"uid":376007949281628195,"categoryUid":1650434916469386247,"name":"a2至初 奶粉婴儿配方奶粉6-12月2段900g 1罐 新西兰进口","barcode":"9421902960017","buyPrice":321.000,"sellPrice":458.00,"sellPrice2":458.00,"stock":100.000,"maxStock":0,"minStock":5.00,"pinyin":"a2nf900g2d","customerPrice":412.00,"description":"","isCustomerDiscount":0,"supplierUid":0,"enable":1,"productionDate":"","createdDatetime":"2022-05-09 14:15:24","updatedDatetime":"2022-06-23 14:51:30","attribute1":"","attribute2":"","attribute3":"","attribute4":"9421902960017","attribute5":"","attribute6":"","attribute10":"100"}}'; // if(self::TEST_DATA){ // return json_decode($json, true); // } $res = self::api($store_id, 'productOpenApi/queryProductByBarcode', ["barcode" => $Barcode]); return $res; } public static function addProductInfo($store_id, $param = []) { $res = self::api($store_id, 'productOpenApi/addProductInfo', $param); return $res; } public static function updateProductInfo($store_id, $param = []) { $res = self::api($store_id, 'productOpenApi/updateProductInfo', $param); return $res; } public static function queryAccessTimes($store_id, $param = []) { $res = self::api($store_id, 'openApiLimitAccess/queryAccessTimes', $param); return $res; } public static function queryDailyAccessTimesLog($store_id, $param = []) { $res = self::api($store_id, 'openApiLimitAccess/queryDailyAccessTimesLog', $param); return $res; } }