Changeset 2968783
- Timestamp:
- 09/19/2023 02:21:51 PM (3 years ago)
- Location:
- d-bargain
- Files:
-
- 2 edited
-
tags/4.0.0/include/class-dbargain.php (modified) (7 diffs)
-
trunk/include/class-dbargain.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
d-bargain/tags/4.0.0/include/class-dbargain.php
r2964146 r2968783 75 75 $current_user_name = $current_user->first_name; 76 76 $domain = home_url('/'); 77 77 78 $xml = http_build_query( 78 79 array( … … 80 81 'domain' => $domain, 81 82 'email' => $current_user_email, 83 'platform' => 'wordpress', 82 84 ) 83 85 ); … … 85 87 $add = 'api/auth/register'; 86 88 87 $url = 'https:// kz3r4ehy21.execute-api.us-east-1.amazonaws.com/dev/' . $add;89 $url = 'https://backend.d-bargain.link/' . $add; 88 90 89 91 $ch = curl_init($url); … … 93 95 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 94 96 95 curl_exec($ch);97 $resultt = curl_exec($ch); 96 98 97 99 curl_close($ch); 100 $responset = json_decode($resultt, true); 101 102 103 98 104 $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; 99 105 $dbargain_session_id = ''; 100 101 106 102 107 if (get_option('dbargain_session_id')) { … … 108 113 add_option('dbargain_session_id', $dbargain_session_id); 109 114 } 110 111 115 112 116 $xml1 = http_build_query( … … 195 199 $data = http_build_query(['order_data' => ['session_id' => $_SESSION['dbargain'][$item['product_id']]['session_id'], 'order_id' => $order_id, 'product_id' => $item['product_id'], 'final_price' => $_SESSION['dbargain'][$item['product_id']]['dbargain_price'], 'status' => 1]]); 196 200 $add = 'api/order/store'; 197 $url = 'https:// kz3r4ehy21.execute-api.us-east-1.amazonaws.com/dev/' . $add;201 $url = 'https://backend.d-bargain.link/' . $add; 198 202 $curl = curl_init(); 199 203 curl_setopt($curl, CURLOPT_POST, 1); … … 997 1001 $data = http_build_query(array('domain' => $domain)); 998 1002 $add = 'api/auth/login'; 999 $url = 'https:// kz3r4ehy21.execute-api.us-east-1.amazonaws.com/dev/' . $add;1003 $url = 'https://backend.d-bargain.link/' . $add; 1000 1004 $ch = curl_init($url); 1001 1005 -
d-bargain/trunk/include/class-dbargain.php
r2964146 r2968783 75 75 $current_user_name = $current_user->first_name; 76 76 $domain = home_url('/'); 77 77 78 $xml = http_build_query( 78 79 array( … … 80 81 'domain' => $domain, 81 82 'email' => $current_user_email, 83 'platform' => 'wordpress', 82 84 ) 83 85 ); … … 85 87 $add = 'api/auth/register'; 86 88 87 $url = 'https:// kz3r4ehy21.execute-api.us-east-1.amazonaws.com/dev/' . $add;89 $url = 'https://backend.d-bargain.link/' . $add; 88 90 89 91 $ch = curl_init($url); … … 93 95 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 94 96 95 curl_exec($ch);97 $resultt = curl_exec($ch); 96 98 97 99 curl_close($ch); 100 $responset = json_decode($resultt, true); 101 102 103 98 104 $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; 99 105 $dbargain_session_id = ''; 100 101 106 102 107 if (get_option('dbargain_session_id')) { … … 108 113 add_option('dbargain_session_id', $dbargain_session_id); 109 114 } 110 111 115 112 116 $xml1 = http_build_query( … … 195 199 $data = http_build_query(['order_data' => ['session_id' => $_SESSION['dbargain'][$item['product_id']]['session_id'], 'order_id' => $order_id, 'product_id' => $item['product_id'], 'final_price' => $_SESSION['dbargain'][$item['product_id']]['dbargain_price'], 'status' => 1]]); 196 200 $add = 'api/order/store'; 197 $url = 'https:// kz3r4ehy21.execute-api.us-east-1.amazonaws.com/dev/' . $add;201 $url = 'https://backend.d-bargain.link/' . $add; 198 202 $curl = curl_init(); 199 203 curl_setopt($curl, CURLOPT_POST, 1); … … 997 1001 $data = http_build_query(array('domain' => $domain)); 998 1002 $add = 'api/auth/login'; 999 $url = 'https:// kz3r4ehy21.execute-api.us-east-1.amazonaws.com/dev/' . $add;1003 $url = 'https://backend.d-bargain.link/' . $add; 1000 1004 $ch = curl_init($url); 1001 1005
Note: See TracChangeset
for help on using the changeset viewer.