Changeset 2585500
- Timestamp:
- 08/19/2021 01:29:05 PM (5 years ago)
- Location:
- raccoon-platform/trunk
- Files:
-
- 5 edited
-
Raccoon-platform.php (modified) (1 diff)
-
Readme.txt (modified) (1 diff)
-
include/Popular_items.php (modified) (2 diffs)
-
include/Related_items.php (modified) (1 diff)
-
include/Session_based.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
raccoon-platform/trunk/Raccoon-platform.php
r2546948 r2585500 9 9 * Description: More informed customers reflect more sales. Here are the features you get from using Raccoon. 10 10 11 * Version: 1.511 * Version: 2.0.0 12 12 * License: GPLv2 or Later 13 13 * Text Domain: Raccoon-Platform -
raccoon-platform/trunk/Readme.txt
r2546948 r2585500 5 5 Requires at least: 3.1 6 6 Tested up to: 5.7.2 7 Stable tag: 1.57 Stable tag: 2.0.0 8 8 Requires PHP: 7.0 9 9 License: GPLv3 or later -
raccoon-platform/trunk/include/Popular_items.php
r2585157 r2585500 53 53 $response = wp_remote_get( 'https://api.raccoonplatform.com:5000/recommend/popular_items/' . $apiKay . '/' . $action . '/' . $number_items . '' ); 54 54 55 // print_r($response); 55 56 56 57 57 $this->output = wp_remote_retrieve_body( $response ); … … 66 66 $product_id = array(); 67 67 $result = json_decode($this->output, true); 68 // print_r(count($result)); 68 69 69 if( $result['res'] > 0){ 70 70 foreach ($result['res'] as $key => $product){ -
raccoon-platform/trunk/include/Related_items.php
r2546677 r2585500 41 41 42 42 $result = json_decode($this->output, true); 43 if($result ){43 if($result['res'] > 0 ){ 44 44 foreach ($result['res'] as $key => $product){ 45 45 array_push($product_id, $product['key']); -
raccoon-platform/trunk/include/Session_based.php
r2546677 r2585500 41 41 $product_id = array(); 42 42 $result = json_decode($this->output, true); 43 if($result ){43 if($result['res'] > 0 ){ 44 44 foreach ($result['res'] as $key => $product){ 45 45 array_push($product_id, $product['iid']);
Note: See TracChangeset
for help on using the changeset viewer.