modify call appp.Shopping.submit client type
Showing
2 changed files
with
3 additions
and
2 deletions
@@ -47,7 +47,7 @@ class Yohobuy | @@ -47,7 +47,7 @@ class Yohobuy | ||
47 | * | 47 | * |
48 | * @var array | 48 | * @var array |
49 | */ | 49 | */ |
50 | - private static $privateKeyList = array( | 50 | + public static $privateKeyList = array( |
51 | 'android' => 'fd4ad5fcfa0de589ef238c0e7331b585', | 51 | 'android' => 'fd4ad5fcfa0de589ef238c0e7331b585', |
52 | 'iphone' => 'a85bb0674e08986c6b115d5e3a4884fa', | 52 | 'iphone' => 'a85bb0674e08986c6b115d5e3a4884fa', |
53 | 'ipad' => 'ad9fcda2e679cf9229e37feae2cdcf80', | 53 | 'ipad' => 'ad9fcda2e679cf9229e37feae2cdcf80', |
@@ -350,7 +350,8 @@ class CartData | @@ -350,7 +350,8 @@ class CartData | ||
350 | { | 350 | { |
351 | $param = Yohobuy::param(); | 351 | $param = Yohobuy::param(); |
352 | $param['debug'] = 'Y'; | 352 | $param['debug'] = 'Y'; |
353 | - $param['client_type'] = 'h5'; | 353 | + $param['client_type'] = 'h5'; // 需要ERP统计WAP的下单量 |
354 | + $param['private_key'] = Yohobuy::$privateKeyList['android']; // H5默认使用Android的私钥 | ||
354 | $param['method'] = 'app.Shopping.submit'; | 355 | $param['method'] = 'app.Shopping.submit'; |
355 | $param['address_id'] = $addressId; | 356 | $param['address_id'] = $addressId; |
356 | $param['cart_type'] = $cartType; | 357 | $param['cart_type'] = $cartType; |
-
Please register or login to post a comment