Browse Source

add vcode to pay

stanley-king 9 years ago
parent
commit
27e40b7ded
1 changed files with 8 additions and 0 deletions
  1. 8 0
      mobile/control/app_pay.php

+ 8 - 0
mobile/control/app_pay.php

@@ -30,6 +30,9 @@ class app_payControl extends mbMemberControl
      */
      */
     public function uniorderOp()
     public function uniorderOp()
     {
     {
+//        static $and_exversions = array();
+//        static $ios_exversions = array();
+
         $token = trim($_GET['key']);
         $token = trim($_GET['key']);
         if (false == $this->checkToken($token)) {
         if (false == $this->checkToken($token)) {
             Log::record("uniorder 1",Log::ERR);
             Log::record("uniorder 1",Log::ERR);
@@ -38,6 +41,11 @@ class app_payControl extends mbMemberControl
 
 
         $pay_sn = $_GET['paysn'];
         $pay_sn = $_GET['paysn'];
         $payment = $_GET['payment'];
         $payment = $_GET['payment'];
+        $vcode = $_GET['vcode'];
+
+        if(empty($vcode)) {
+            return joutput_error(errcode::ErrPayment, "抱歉,请升级到最新版本.");
+        }
 
 
         if (in_array($payment, self::$pay_types) == false) {
         if (in_array($payment, self::$pay_types) == false) {
             Log::record("uniorder 2",Log::ERR);
             Log::record("uniorder 2",Log::ERR);