perf: 支付宝多账户: +Trippest

master
Lei OT 2 years ago
parent 7a2a073306
commit c324da7281

@ -97,7 +97,7 @@ class AlipayTradeService extends CI_Controller
* @date 2017-09-13
* @return [type] [description]
*/
public function alipay_notice()
public function alipay_notice($site = 'cht')
{
error_reporting(0);
$resp_arr = $this->input->post();
@ -958,7 +958,7 @@ class AlipayTradeService extends CI_Controller
/**
* 验签方法
* @param $arr 验签支付宝返回的信息,使用支付宝公钥。
* @return boolean
* @return obj
*/
function check($arr){
$ret = new ArrayObject();

@ -166,7 +166,23 @@ class Alipay_note_model extends CI_Model {
return FALSE;
}
} else {
return $query->result();
$result = $query->result();
array_walk($result, 'Alipay_note_model::set_fundsource');
return $result;
}
}
private $code_fundsource = array(
"2021004129643221" => "Trippest",
"2017092108849921" => "", // "CHT",
);
public function set_fundsource(&$ele)
{
$ele->fundsource = "";
$raw = json_decode($ele->ALI_memo);
$app_id = isset($raw->app_id) ? $raw->app_id : '2017092108849921';
if ($this->code_fundsource[$app_id]) {
$ele->fundsource = $this->code_fundsource[$app_id];
}
}

@ -63,6 +63,9 @@
.input-group-btn{border: 1px solid #ccc;padding: 5px;}
.search-btn{cursor: pointer; background: url(//data.chinahighlights.com/css/images/global/site-search-button.png) no-repeat center center;}
.center-block{display: block;margin: 0 auto;}
.brand_text {color: #fff; padding: 2px 3px; border-radius: 4px;font-style: italic;}
.cht-color {background-color: #A31022;}
.trippest-color {background-color: #E83201;}
</style>
<style type="text/css" media="screen and (max-width:767px)">
.pay_form .form-group{padding-left: 0!important;padding-right: 0!important;}
@ -141,6 +144,10 @@
<li class="col-sm-1 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;"><?php echo ($key + 1); ?></li>
<li class="col-sm-6 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;">
<span class="brand_text <?php echo strtolower(str_replace(" ","",$item->fundsource))."-color"; ?>"><?php echo $item->fundsource; ?></span>
<?php if ($item->ALI_dealId) { ?>
<a class="seen" target="_blank" href="/webht.php/apps/pay/AlipayTradeService/receipt/<?php echo $item->ALI_dealId; ?>">
<?php } else {?>

Loading…
Cancel
Save