|
|
@@ -30,18 +30,23 @@ class Taskorderlianc
|
|
30
|
30
|
"Content-Type: application/json"
|
|
31
|
31
|
];
|
|
32
|
32
|
// 请求的 POST 数据(例如用户信息)
|
|
|
33
|
+// $postData = [
|
|
|
34
|
+// 'pm' => 1,
|
|
|
35
|
+// 'rewardScore' => 5,
|
|
|
36
|
+// 'orderId' => 'johndoe@example.com',
|
|
|
37
|
+// 'orderType' => '1234567890',
|
|
|
38
|
+// ];
|
|
33
|
39
|
$postData = [
|
|
34
|
|
- 'pm' => 1,
|
|
35
|
|
- 'rewardScore' => 5,
|
|
36
|
|
- 'orderId' => 'johndoe@example.com',
|
|
37
|
|
- 'orderType' => '1234567890',
|
|
|
40
|
+ 'uid' => 1592,
|
|
|
41
|
+ 'sex' => 2,
|
|
|
42
|
+ 'spreadUid' => 767
|
|
38
|
43
|
];
|
|
39
|
44
|
|
|
40
|
45
|
|
|
41
|
46
|
// 请求 URL
|
|
42
|
47
|
// $url = self::GATEWAY_URL . "/external/userCenter_service/user/getUserList?uid=1592";
|
|
43
|
48
|
// 请求 URL POST
|
|
44
|
|
- $url = self::GATEWAY_URL . "/external/userCenter_service/user/1592/score";
|
|
|
49
|
+ $url = self::GATEWAY_URL . "/external/userCenter_service/user/updateUserInfo";
|
|
45
|
50
|
|
|
46
|
51
|
|
|
47
|
52
|
// // 使用 cURL 发起 GET 请求
|