e 8 жил өмнө
parent
commit
5ee6897e9a

+ 2 - 2
www/protected/modules/o2o/controllers/RechargeController.php

@@ -46,7 +46,7 @@ class  RechargeController extends O2oBaseController{
 
         $str = '壹管家充值卡';
         $amount = ceil($order->price*1000)/10;
-        $result = Service::factory('PayService')->Pay($pay_channel,$amount,'char'.(string)$order->_id,$str,$str,$user_obj->wx_pub_openid);
+        $result['success'] = Service::factory('PayService')->Pay($pay_channel,$amount,'char'.(string)$order->_id,$str,$str,$user_obj->wx_pub_openid);
         if($result === false){
             CommonFn::requestAjax(false,'支付遇到点问题了,请稍候再试');
         }else{
@@ -63,7 +63,7 @@ class  RechargeController extends O2oBaseController{
                     }
                 }';
 
-                $res = CommonFn::sendWxMessage($data);
+                $result['wechat'] = CommonFn::sendWxMessage($data);
 
             }
             //end