_SendSms(7, array('code' => $rand_code, 'product' => '代理'), $phone); if ( !is_null($result)) { throw new Exception('短信发送太频繁,请稍候再试', ERRORCODE_SMSSENDERROR); } } return $rand_code; } }