|
@@ -66,19 +66,19 @@ class RefillPhone extends refill\IRefillPhone
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private function direct_add($card_no, $params)
|
|
|
+ private function direct_add($card_no,$input)
|
|
|
{
|
|
|
- $order_sn = $params['order_sn'];
|
|
|
- $goods_id = intval($params['goods_id']);
|
|
|
- $product_code = $this->getProductCode($goods_id,$params['product_code']);
|
|
|
+ $order_sn = $input['order_sn'];
|
|
|
+ $goods_id = intval($input['goods_id']);
|
|
|
+ $product_code = $this->getProductCode($goods_id,$input['product_code']);
|
|
|
|
|
|
- Model('thrid_refill')->edit_third($params['order_id'], ['chcode' => $product_code]);
|
|
|
- $quantity = intval($params['quantity']);
|
|
|
+ Model('thrid_refill')->edit_third($input['order_id'], ['chcode' => $product_code]);
|
|
|
+ $quantity = intval($input['quantity']);
|
|
|
|
|
|
$params = $this->req_params($order_sn,$product_code,$quantity);
|
|
|
$params['mob'] = $card_no;
|
|
|
$params['amt'] = refill\util::ThirdRefillAmount;
|
|
|
- $params['card_type'] = $params['third_card_type'];//账号类型1 手机号,2 QQ号,3 微信号
|
|
|
+ $params['card_type'] = $input['third_card_type'];//账号类型1 手机号,2 QQ号,3 微信号
|
|
|
|
|
|
$sign = $this->sign($params);
|
|
|
$params['sgn'] = $sign;
|