|
|
|
@ -97,8 +97,11 @@ class LeyouClient
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
if ($order['ref_id'] < 100) {
|
|
|
|
|
$data['money'] = intval($order['ref_amount']) * 10;
|
|
|
|
|
$data['type'] = 2;
|
|
|
|
|
// $data['money'] = intval($order['ref_amount']) * 10;
|
|
|
|
|
// $data['type'] = 2;
|
|
|
|
|
$data['goods_id'] = 9900001;
|
|
|
|
|
$data['goods_num'] = intval($order['ref_amount']);
|
|
|
|
|
$data['type'] = 1;
|
|
|
|
|
} else {
|
|
|
|
|
$data['goods_id'] = $order['ref_id'];
|
|
|
|
|
$data['goods_num'] = $order['num'];
|
|
|
|
@ -133,79 +136,19 @@ class LeyouClient
|
|
|
|
|
public function getResources($typeId, $deviceType)
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
/* 1 => ['ref_id' => 1, 'name' => '60元宝', 'amount' => 6],
|
|
|
|
|
2 => ['ref_id' => 2, 'name' => '300元宝', 'amount' => 30],
|
|
|
|
|
3 => ['ref_id' => 3, 'name' => '980元宝', 'amount' => 98],
|
|
|
|
|
4 => ['ref_id' => 4, 'name' => '1280元宝', 'amount' => 128],
|
|
|
|
|
5 => ['ref_id' => 5, 'name' => '1980元宝', 'amount' => 198],
|
|
|
|
|
6 => ['ref_id' => 6, 'name' => '3280元宝', 'amount' => 328],
|
|
|
|
|
7 => ['ref_id' => 7, 'name' => '6480元宝', 'amount' => 648],
|
|
|
|
|
8 => ['ref_id' => 8, 'name' => '10000元宝', 'amount' => 1000],
|
|
|
|
|
9 => ['ref_id' => 9, 'name' => '20000元宝', 'amount' => 2000],
|
|
|
|
|
10 => ['ref_id' => 10, 'name' => '30000元宝', 'amount' => 3000],
|
|
|
|
|
11 => ['ref_id' => 11, 'name' => '50000元宝', 'amount' => 5000],
|
|
|
|
|
12 => ['ref_id' => 12, 'name' => '100000元宝', 'amount' => 10000],
|
|
|
|
|
13 => ['ref_id' => 13, 'name' => '200000元宝', 'amount' => 20000],
|
|
|
|
|
14 => ['ref_id' => 14, 'name' => '680元宝', 'amount' => 68], */
|
|
|
|
|
121264 => ['ref_id' => 121264, 'name' => '私人定制12元激活卡', 'amount' => 12],
|
|
|
|
|
121246 => ['ref_id' => 121246, 'name' => '私人定制30元激活卡', 'amount' => 30],
|
|
|
|
|
121247 => ['ref_id' => 121247, 'name' => '私人定制68元激活卡', 'amount' => 68],
|
|
|
|
|
121248 => ['ref_id' => 121248, 'name' => '私人定制128元激活卡', 'amount' => 128],
|
|
|
|
|
121249 => ['ref_id' => 121249, 'name' => '私人定制198元激活卡', 'amount' => 198],
|
|
|
|
|
121250 => ['ref_id' => 121250, 'name' => '私人定制328元激活卡', 'amount' => 328],
|
|
|
|
|
121251 => ['ref_id' => 121251, 'name' => '私人定制648元激活卡', 'amount' => 648],
|
|
|
|
|
121228 => ['ref_id' => 121228, 'name' => '1元礼包激活卡', 'amount' => 1],
|
|
|
|
|
121229 => ['ref_id' => 121229, 'name' => '6元礼包激活卡', 'amount' => 6],
|
|
|
|
|
121230 => ['ref_id' => 121230, 'name' => '30元礼包激活卡', 'amount' => 30],
|
|
|
|
|
121252 => ['ref_id' => 121252, 'name' => '68元礼包激活卡', 'amount' => 68],
|
|
|
|
|
121253 => ['ref_id' => 121253, 'name' => '98元礼包激活卡', 'amount' => 98],
|
|
|
|
|
121254 => ['ref_id' => 121254, 'name' => '128元礼包激活卡', 'amount' => 128],
|
|
|
|
|
121255 => ['ref_id' => 121255, 'name' => '198元礼包激活卡', 'amount' => 198],
|
|
|
|
|
121256 => ['ref_id' => 121256, 'name' => '328元礼包激活卡', 'amount' => 328],
|
|
|
|
|
121257 => ['ref_id' => 121257, 'name' => '648元礼包激活卡', 'amount' => 648],
|
|
|
|
|
121262 => ['ref_id' => 121262, 'name' => '钻石特权30元卡', 'amount' => 30],
|
|
|
|
|
121209 => ['ref_id' => 121209, 'name' => '6元专属充值卡', 'amount' => 6],
|
|
|
|
|
121210 => ['ref_id' => 121210, 'name' => '30元专属充值卡', 'amount' => 30],
|
|
|
|
|
121222 => ['ref_id' => 121222, 'name' => '68元专属充值卡', 'amount' => 68],
|
|
|
|
|
121211 => ['ref_id' => 121211, 'name' => '98元专属充值卡', 'amount' => 98],
|
|
|
|
|
121212 => ['ref_id' => 121212, 'name' => '128元专属充值卡', 'amount' => 128],
|
|
|
|
|
121213 => ['ref_id' => 121213, 'name' => '198元专属充值卡', 'amount' => 198],
|
|
|
|
|
121214 => ['ref_id' => 121214, 'name' => '328元专属充值卡', 'amount' => 328],
|
|
|
|
|
121215 => ['ref_id' => 121215, 'name' => '648元专属充值卡', 'amount' => 648],
|
|
|
|
|
121216 => ['ref_id' => 121216, 'name' => '1000元专属充值卡', 'amount' => 1000],
|
|
|
|
|
121217 => ['ref_id' => 121217, 'name' => '2000元专属充值卡', 'amount' => 2000],
|
|
|
|
|
121218 => ['ref_id' => 121218, 'name' => '3000元专属充值卡', 'amount' => 3000],
|
|
|
|
|
121219 => ['ref_id' => 121219, 'name' => '5000元专属充值卡', 'amount' => 5000],
|
|
|
|
|
121220 => ['ref_id' => 121220, 'name' => '10000元专属充值卡', 'amount' => 10000],
|
|
|
|
|
121221 => ['ref_id' => 121221, 'name' => '20000元专属充值卡', 'amount' => 20000],
|
|
|
|
|
121265 => ['ref_id' => 121265, 'name' => '化妖30元礼包卡', 'amount' => 30],
|
|
|
|
|
121261 => ['ref_id' => 121261, 'name' => '入魔30元礼包卡', 'amount' => 30],
|
|
|
|
|
121267 => ['ref_id' => 121267, 'name' => '兄弟团购30元激活卡', 'amount' => 30],
|
|
|
|
|
121268 => ['ref_id' => 121268, 'name' => '兄弟团购68元激活卡', 'amount' => 68],
|
|
|
|
|
121269 => ['ref_id' => 121269, 'name' => '兄弟团购98元激活卡', 'amount' => 98],
|
|
|
|
|
121270 => ['ref_id' => 121270, 'name' => '兄弟团购128元激活卡', 'amount' => 128],
|
|
|
|
|
121271 => ['ref_id' => 121271, 'name' => '鬼化30元礼包卡', 'amount' => 30],
|
|
|
|
|
1258001 => ['ref_id' => 1258001, 'name' => '论剑特权激活卡', 'amount' => 1],
|
|
|
|
|
1240101 => ['ref_id' => 1240101, 'name' => '100气球', 'amount' => 100],
|
|
|
|
|
1212148 => ['ref_id' => 1212148, 'name' => '侠客金令', 'amount' => 1],
|
|
|
|
|
121266 => ['ref_id' => 121266, 'name' => '月卡充值卡', 'amount' => 1],
|
|
|
|
|
1 => ['ref_id' => 1, 'name' => '6气球', 'amount' => 6],
|
|
|
|
|
2 => ['ref_id' => 2, 'name' => '30气球', 'amount' => 30],
|
|
|
|
|
3 => ['ref_id' => 3, 'name' => '98气球', 'amount' => 98],
|
|
|
|
|
// 4 => ['ref_id' => 4, 'name' => '128气球', 'amount' => 128],
|
|
|
|
|
5 => ['ref_id' => 5, 'name' => '198气球', 'amount' => 198],
|
|
|
|
|
6 => ['ref_id' => 6, 'name' => '328气球', 'amount' => 328],
|
|
|
|
|
7 => ['ref_id' => 7, 'name' => '648气球', 'amount' => 648],
|
|
|
|
|
8 => ['ref_id' => 8, 'name' => '1000气球', 'amount' => 1000],
|
|
|
|
|
9 => ['ref_id' => 9, 'name' => '2000气球', 'amount' => 2000],
|
|
|
|
|
// 10 => ['ref_id' => 10, 'name' => '3000气球', 'amount' => 3000],
|
|
|
|
|
11 => ['ref_id' => 11, 'name' => '5000气球', 'amount' => 5000],
|
|
|
|
|
12 => ['ref_id' => 12, 'name' => '10000气球', 'amount' => 10000],
|
|
|
|
|
13 => ['ref_id' => 13, 'name' => '20000气球', 'amount' => 20000],
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/* return [
|
|
|
|
|
['ref_id' => 121209, 'name' => '6元充值卡', 'amount' => 6],
|
|
|
|
|
['ref_id' => 121210, 'name' => '30元充值卡', 'amount' => 30],
|
|
|
|
|
['ref_id' => 121211, 'name' => '98元充值卡', 'amount' => 98],
|
|
|
|
|
['ref_id' => 121212, 'name' => '128元充值卡', 'amount' => 128],
|
|
|
|
|
['ref_id' => 121213, 'name' => '198元充值卡', 'amount' => 198],
|
|
|
|
|
['ref_id' => 121214, 'name' => '328元充值卡', 'amount' => 328],
|
|
|
|
|
['ref_id' => 121215, 'name' => '648元充值卡', 'amount' => 648],
|
|
|
|
|
['ref_id' => 121216, 'name' => '1000元充值卡', 'amount' => 1000],
|
|
|
|
|
['ref_id' => 121217, 'name' => '2000元充值卡', 'amount' => 2000],
|
|
|
|
|
['ref_id' => 121218, 'name' => '3000元充值卡', 'amount' => 3000],
|
|
|
|
|
['ref_id' => 121219, 'name' => '5000元充值卡', 'amount' => 5000],
|
|
|
|
|
['ref_id' => 121220, 'name' => '10000元充值卡', 'amount' => 10000],
|
|
|
|
|
['ref_id' => 121221, 'name' => '20000元充值卡', 'amount' => 20000],
|
|
|
|
|
['ref_id' => 121222, 'name' => '68元充值卡', 'amount' => 68],
|
|
|
|
|
]; */
|
|
|
|
|
}
|
|
|
|
|
}
|