我正在使用 AQL 更新集合中的记录。有时,我会收到 [ArangoError 1200:冲突]。在 JS Shell 中,我可以将第三个参数设置为 true 以使用覆盖并忽略冲突。如何忽略 AQL 中的冲突?
我有代码:
function loginUser( $email, $password )
{
/** @var $session Mage_Customer_Model_Session */
$session = Mage::getSingleton( 'customer/session' );
try
{
$session->login( $email, $password );
$session->setCustomerAsLoggedIn( $session->getCustomer() );
return 1;
}
catch( Exception $e )
{
return $e;
}
}
$test = loginUser("login","password");
echo "test";
print_r($test);
die;
Run Code Online (Sandbox Code Playgroud)
但我总是得到
Mage_Core_Exception Object ( [_messages:protected] => Array ( ) [message:protected] => Invalid login or password.
登录和密码是正确的,我尝试了很多帐户,结果相同.
我该如何正确登录?
在Windows手机silverlight中,我在启动预览视频时使用PhotoCamera获取缓冲帧,在通用应用程序中我使用MediaCapture,但我不知道如何获取预览缓冲区.
谢谢
在我的程序中,我有一个按钮点击,从该onclick事件我调用一个方法进行一些文本框验证.代码是:
protected void btnupdate_Click(object sender, EventArgs e)
{
CheckValidation();
//Some other Code
}
public void CheckValidation()
{
if (txtphysi.Text.Trim() == "")
{
lblerrmsg.Visible = true;
lblerrmsg.Text = "Please Enter Physician Name";
return;
}
//Some other Code
}
Run Code Online (Sandbox Code Playgroud)
这里如果txtphysi.text为null然后它进入循环并使用return然后它只来自 CheckValidation()方法并且它继续在btnupdate_Click事件中,但在这里我也想停止执行过程btnupdate_Click.我该怎么做?