作者 郭鑫
1 个管道 的构建 通过 耗费 1 秒

付款修改

... ... @@ -50,7 +50,6 @@ class SomepayController extends HomeBaseController
//微信回调
public function pay_notify()
{
... ... @@ -77,11 +76,11 @@ class SomepayController extends HomeBaseController
//// 更新主表状态
$where_orderN['order_sn'] = $data['out_trade_no'];
$where_orderN['status'] = 3;
$where_orderN['pay_time'] = time();
$order = Db::name('Order')->where($where_orderN)->find();
if($order){
$up_order['status'] = 10;
$up_order['update_time'] = time();
$up_order['pay_time'] = time();
$up_order['trans_id'] = $data['transaction_id'];
$res_order = Db::name('Order')->where($where_orderN)->update($up_order);
if($res_order){
... ...