Merge branch 'hotfix/log' of http://git.dev.yoho.cn/web/yohobuy into hotfix/log
Showing
1 changed file
with
18 additions
and
0 deletions
@@ -497,4 +497,22 @@ class CartData | @@ -497,4 +497,22 @@ class CartData | ||
497 | return Yohobuy::get(SearchData::getUrl('search'), $param); | 497 | return Yohobuy::get(SearchData::getUrl('search'), $param); |
498 | } | 498 | } |
499 | 499 | ||
500 | + /** | ||
501 | + * 选择支付,校验时间间隔,插入数据 | ||
502 | + * @param string $uid | ||
503 | + * @param string $orderCode | ||
504 | + * @param int $payment 14:银联手机支付 15:支付宝手机 18:支付宝wap(wap) 19:微信支付 22:微信wap(wap) 26:QQ钱包手机支付 | ||
505 | + * @return type | ||
506 | + */ | ||
507 | + public static function savePrePayInfo($uid, $orderCode, $payment) | ||
508 | + { | ||
509 | + $param = Yohobuy::param(); | ||
510 | + $param['method'] = 'app.order.savePrePayInfo'; | ||
511 | + $param['uid'] = $uid; | ||
512 | + $param['orderCode'] = $orderCode; | ||
513 | + $param['payment'] = $payment; | ||
514 | + $param['client_secret'] = Sign::getSign($param); | ||
515 | + return Yohobuy::get(Yohobuy::API_URL, $param); | ||
516 | + } | ||
517 | + | ||
500 | } | 518 | } |
-
Please register or login to post a comment