feat/task1-c-wallet
devil_gong 2018-09-28 15:34:31 +08:00
parent 8f16591c85
commit 30414c1b46
1 changed files with 4 additions and 4 deletions

View File

@ -196,7 +196,7 @@ class OrderService
{ {
return $ret; return $ret;
} }
file_put_contents('./rrrrrr.txt', json_encode($ret)); file_put_contents('/data/www/project/shopxo/service/rrrrrr.txt', json_encode($ret));
// 兼容web版本支付参数 // 兼容web版本支付参数
$buyer_email = isset($ret['data']['buyer_logon_id']) ? $ret['data']['buyer_logon_id'] : (isset($ret['data']['buyer_email']) ? $ret['data']['buyer_email'] : ''); $buyer_email = isset($ret['data']['buyer_logon_id']) ? $ret['data']['buyer_logon_id'] : (isset($ret['data']['buyer_email']) ? $ret['data']['buyer_email'] : '');
@ -215,7 +215,7 @@ class OrderService
'business_type' => 0, 'business_type' => 0,
'add_time' => time(), 'add_time' => time(),
]; ];
file_put_contents('./llllll.txt', json_encode($pay_log_data)); file_put_contents('/data/www/project/shopxo/service/llllll.txt', json_encode($pay_log_data));
M('PayLog')->add($pay_log_data); M('PayLog')->add($pay_log_data);
// 消息通知 // 消息通知
@ -233,7 +233,7 @@ class OrderService
'pay_time' => time(), 'pay_time' => time(),
'upd_time' => time(), 'upd_time' => time(),
); );
file_put_contents('./uuuuuu.txt', json_encode($upd_data)); file_put_contents('/data/www/project/shopxo/service/uuuuuu.txt', json_encode($upd_data));
if($m->where(['id'=>$data['id']])->save($upd_data)) if($m->where(['id'=>$data['id']])->save($upd_data))
{ {
// 提交事务 // 提交事务
@ -246,7 +246,7 @@ class OrderService
$m->rollback(); $m->rollback();
// 处理失败 // 处理失败
return DataReturn('处理失败', -100); return DataReturn('处理失败222', -100);
} }
/** /**