email test
This commit is contained in:
@@ -227,7 +227,7 @@ class Order extends base{
|
|||||||
'gateway_id' => "PAYSTATION",//GATEWAY_ID,
|
'gateway_id' => "PAYSTATION",//GATEWAY_ID,
|
||||||
"merchant_session" => $ca_sn,
|
"merchant_session" => $ca_sn,
|
||||||
"merchant_reference"=>$ca_sn,
|
"merchant_reference"=>$ca_sn,
|
||||||
"amount" =>(int)((((int)$journal_info['fee'])*726/416)*100),
|
"amount" =>(int)(prin($journal_info['fee'])*100),//(int)((((int)$journal_info['fee'])*726/416)*100),
|
||||||
// "amount" =>100,
|
// "amount" =>100,
|
||||||
// "currency"=>"USD",//目前paystation仅支持nzd
|
// "currency"=>"USD",//目前paystation仅支持nzd
|
||||||
"return_url"=>"https://submission.tmrjournals.com/success?id=".$article_info['article_id'],
|
"return_url"=>"https://submission.tmrjournals.com/success?id=".$article_info['article_id'],
|
||||||
@@ -261,6 +261,10 @@ class Order extends base{
|
|||||||
return jsonSuccess($frag);
|
return jsonSuccess($frag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function myPrin(){
|
||||||
|
echo prin(600);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function creatPaystation($article_id){
|
private function creatPaystation($article_id){
|
||||||
$article_info = $this->article_obj->where("article_id",$article_id)->find();
|
$article_info = $this->article_obj->where("article_id",$article_id)->find();
|
||||||
|
|||||||
@@ -1023,6 +1023,15 @@ function createPayStationToken(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**资金汇率
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function prin($usd){
|
||||||
|
$res = myGet("https://v6.exchangerate-api.com/v6/575c78ea6173243d6c366814/latest/USD");
|
||||||
|
$re = object_to_array(json_decode($res));
|
||||||
|
return $usd*$re["conversion_rates"]['NZD'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user