我的应用程序已经在应用程序商店中,推送通知处于活动状态并正常工作(使用生产证书).现在我需要在应用程序中添加徽章(在它们只是警报之前)(已经在服务器端实现).因此,对于测试,我需要一个开发SSL证书.以下是我的疑问:
代码部分:
NSString* alertValue = [[userInfo valueForKey:@"aps"] valueForKey:@"badge"];
NSLog(@"my message-- %@",alertValue);
int badgeValue= [alertValue intValue];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:badgeValue];
Run Code Online (Sandbox Code Playgroud)
有什么建议?
xcode objective-c push-notification apple-push-notifications ios
[
{
"name": "The Universe & The Earth"
, "imagename": "cat1.jpg"
, "active": "Y"
, "createdon": "1901-01-01"
, "lastmodifiedon": "1901-01-01 00:00:00"
, "description": "Knowledge of Earth location in the universe has been shaped by 400 years of telescopic observations, and has expanded radically in the last century.\n"
, "id": "1"
}
, {
"name": "Life on Earth"
, "imagename": "cat2.jpg"
, "active": "Y"
, "createdon": "1901-01-01"
, "lastmodifiedon": "1901-01-01 00:00:00"
, "description": "Over the last 3.7 billion years or so, …Run Code Online (Sandbox Code Playgroud) 这是我想要的简化例子:
表格1 :
CODE | VALUE
A | 10
A | 20
B | 10
C | 20
Run Code Online (Sandbox Code Playgroud)
表2:
CODE | VALUE2
A | 25
B | 10
B | 10
D | 20
Run Code Online (Sandbox Code Playgroud)
这就是我想要的:
CODE | SUM(VALUE) | SUM(VALUE2)
A | 30 | 25
B | 10 | 20
C | 20 | NULL
D | NULL | 20
Run Code Online (Sandbox Code Playgroud)
我天真地尝试过:
SELECT T1.CODE, SUM(VALUE), SUM(VALUE2)
FROM table1 T1
LEFT OUTER JOIN table2 T2
ON T1.CODE = T2.CODE
GROUP BY T.CODE …Run Code Online (Sandbox Code Playgroud) 我正在使用简单的Formmail.pl脚本作为联系表单.当我运行它时,它在Safari,Mozilla,Opera和Chrome上运行完美,但是当我在IE上测试时,我收到以下错误:
Error 405 Method Not Allowed.
The requested method POST is not allowed for URL/contact_us.html
Run Code Online (Sandbox Code Playgroud)
我也尝试使用具有相同结果的php脚本.我已经联系了我的ISP,检查他们的服务器上是否允许使用POST方法,他们说它是.有人可以帮忙吗?
下面是表单代码:
<form id="contact_form" name="contact_form" method="post" formaction="cgi-bin/nms_formmail.pl" align="center" >
<div align="center">
<legend >Please fill in the form below </legend>
</div>
<p><br />
</p>
<table width="620" border="0" cellspacing="10" align="center" summary="A form to contact Clare">
<tr>
<td>
<input type="hidden" name="recipient" value="test@test.ie"> <input type="hidden" name="subject" value="A message from your online form"> <input type="hidden" name="redirect" value="http://www.test.ie/contact_Thank_You.html">
</td>
</tr>
<tr>
<td align="right"><label for="realname">
<div align="right"><font color="#0776A0">Name</font></div>
</label></td>
<td>
<div align="left"> …Run Code Online (Sandbox Code Playgroud) 如何通过保留原始URL的URL参数来执行Javascript重定向URL?
例如原始网址: http://test.com?a=1&b=2
重定向至: http://sample.com?a=1&b=2