GetRandomNum(); $Char2 = $this->GetRandomNum(); $Char3 = $this->GetRandomNum(); $Char4 = $this->GetRandomNum(); $Char5 = $this->GetRandomNum(); $Char6 = $this->GetRandomNum(); $captcha = $Char1 . $Char2 . $Char3 . $Char4 . $Char5 . $Char6; $content = "尊敬的顾客您好,您本次在店铺“" . $shopname . "”微信点单的验证码为" . $captcha . ",请您在订单提交页面输入本验证码进行手机号码验证,验证码有效时间10分钟。"; SendGSMMessage($phone, $content); } ?>