예제 #1
0
        $time_stamp = $orderRelationUpdateNotifyRequest->time_stamp;
        $encodeStr = $orderRelationUpdateNotifyRequest->encodeStr;
        if ($serviceType == 90 && empty($content)) {
            if ($updateType == 1) {
                $content = 'ktkj';
            } else {
                $content = 'td';
            }
        }
        $ret = $user->RegistUser($userId, C('USER_DEF_PASSWORD'), $serviceType, $content);
        if ($ret['status'] == 0) {
            $user->setUserCost($userId, $serviceType, $content);
        }
        $orderRelationUpdateNotifyResponse['resultCode'] = $ret['status'];
        $orderRelationUpdateNotifyResponse['recordSequenceId'] = $ret['msg'];
        return $orderRelationUpdateNotifyResponse;
    }
    public function testsms()
    {
        $sms = new SmsService();
        $digest = $sms->sendSmsTxt("WO空间9元版套餐订购成功,您现在可以使用128G存储空间,并使用6G免费定向流量!");
        if ($digest) {
            $p_sub_spnumber = '82100';
            $mobile = '13119910011';
            $ret = $sms->AppendSmsQue($mobile, $digest, $p_sub_spnumber);
        }
    }
}
$test = new order();
$test->testsms();