|
|
|
@ -17,9 +17,11 @@ class TransferMerchantModel extends Model
|
|
|
|
|
"1"=>"官方自营接口(提现免手续费)",
|
|
|
|
|
"2"=>"官方接口"
|
|
|
|
|
];
|
|
|
|
|
const StatementPaymentWhere ="ways = 1 or ways = 3";
|
|
|
|
|
const UnderPaymentWhere ="ways = 2 or ways = 3";
|
|
|
|
|
public function getStatementPaymentInfo()
|
|
|
|
|
{
|
|
|
|
|
$res = $this->where("ways = 1 or ways = 3")->find();
|
|
|
|
|
$res = $this->where(self::StatementPaymentWhere)->find();
|
|
|
|
|
if($res){
|
|
|
|
|
return $this->setInfoStr($res);
|
|
|
|
|
}
|
|
|
|
@ -27,7 +29,7 @@ class TransferMerchantModel extends Model
|
|
|
|
|
}
|
|
|
|
|
public function getUnderPaymentInfo()
|
|
|
|
|
{
|
|
|
|
|
$res = $this->where("ways = 2 or ways = 3")->find();
|
|
|
|
|
$res = $this->where(self::UnderPaymentWhere)->find();
|
|
|
|
|
if($res){
|
|
|
|
|
return $this->setInfoStr($res);
|
|
|
|
|
}
|
|
|
|
@ -39,9 +41,18 @@ class TransferMerchantModel extends Model
|
|
|
|
|
return $item;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getStatementPaymentConfig()
|
|
|
|
|
{
|
|
|
|
|
$res = $this->where(self::StatementPaymentWhere)->field("config")->find();
|
|
|
|
|
if($res){
|
|
|
|
|
return json_decode($res['config'],true);
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getUnderPaymentConfig()
|
|
|
|
|
{
|
|
|
|
|
$res = $this->where("ways = 1 or ways = 3")->field("config")->find();
|
|
|
|
|
$res = $this->where(self::UnderPaymentWhere)->field("config")->find();
|
|
|
|
|
if($res){
|
|
|
|
|
return json_decode($res['config'],true);
|
|
|
|
|
}
|
|
|
|
|