|
@@ -18,7 +18,7 @@ class RefillPhone extends refill\IRefillPhone
|
|
|
{
|
|
|
[$goods_id, $price] = parent::goods($quality,$amount,$card_type,$regin_no,$other);
|
|
|
if($goods_id <= 0) return [0,0];
|
|
|
- $key = "{$amount}-{$regin_no}";
|
|
|
+ $key = "{$card_type}-{$amount}-{$regin_no}";
|
|
|
$price = config::Price[$key];
|
|
|
if(empty($price)) {
|
|
|
Log::record("channel cannot find price where name={$this->mName}, goods_id = {$goods_id} card_type={$card_type} amount={$amount} regin_no={$regin_no}",Log::ERR);
|
|
@@ -46,7 +46,7 @@ class RefillPhone extends refill\IRefillPhone
|
|
|
public function add($card_no, $card_type, $amount, $params,&$net_errno = 0)
|
|
|
{
|
|
|
$order_sn = $params['order_sn'];
|
|
|
- $regin_no = $input['regin_no'] ?? -1;
|
|
|
+ $regin_no = $params['regin_no'] ?? -1;
|
|
|
if($regin_no <= 0) {
|
|
|
return [false, '省份获取错误', false];
|
|
|
}
|