计算机软件产品开发文件编制指南GB8567-88 doc文件下载
计算机软件产品开发文件编制指南GB8567-88
计算机软件产品开发文件编制指南GB8567-88
apache
具体步骤如下:
1.开启apache的mod_headers模块
LoadModule headers_module modules/mod_headers.so
2.设置Access-Control-Allow-Origin
Header set Access-Control-Allow-Origin "*"
nginx
字体转base64并替换原引用
字体转base64编码网址:https://transfonter.org/
由于某些特殊原因,可能需要将thinkphp系统安装到二级目录中,可参考以下操作(仅供参考):
网站目录:/www/wwwroot/website
运行目录:/subdir/public
伪静态:
location ~ .*\.(txt|TXT|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|bmp|BMP|swf|SWF|css|CSS|js|JS|ico|ICO|doc|DOC|xls|XLS|xlsx|XLSX|docx|DOCX|json|JSON|woff2|WOFF2|woff|WOFF|ttf|TTF|pdf|PDF|zip|ZIP|rar|RAR|7z|7Z|svg|cur|map|properties|bcmap|htm|gz|log)$
{
valid_referers xxx.cn *.yyy.cn;
if ($invalid_referer){
return 404;
}
rewrite ^/subdir/(.*)$ /$1 last; break;
}
set $flag "";
location /subdir/ {
index index.php;
if ($request_uri ~* (get_file|get_auth_file|download|auth_download)){
set $flag "${flag}1";
}
if ($http_referer !~* (xxx|yyy)){
set $flag "${flag}1";
}
if ($flag = '11'){
return 404;
}
if (!-e $request_filename){
rewrite ^/subdir/(.*)$ /index.php?s=$1 last; break;
}
}
Nginx配置:root /www/wwwroot/website/subdir/public;
ThinkPHP源码修改以支持二级目录访问
helper.php
中url
方法默认domain
参数为:trueUrl.php
中parseDomain
方法返回值为:return $scheme . $domain .'/subdir'
Route::buildUrl($data['avatar'])->suffix(false)->domain(true)->build();
作为用户,我可以通过手机号和短信验证码登录,以便于更方便的登录。
安全验收标准:
后端逻辑
1.参数检验:银行卡号(必传)、交易密码(必传)、提现金额(必传)、用户ID(必传),TOKEN值(必传)。注意事项:提现金额禁止科学计数法,并且不能为0、为负。
2.判断提现时间是否在可提现时间段(例如8:00至18:00)。
3.旧版本禁止提现(可以变相强制用户更新)。
4.控制提现金额(最小提现金额和最大提现金额)。
5.获取手续费(最低手续费和最高手续费,可根据设置取值)。
事务处理
6.查找用户余额,判断余额是否满足提现金额。
7.更新用户余额字段,扣除提现金额。
8.增加提现记录表字段(提现日志)。
9.发送系统消息。
10.财务审核通过或拒绝,拒绝则退回金额。
11.手动转账或调用第三方支付。
12.记录转账凭证等。
应用场景:如局域网内访问wamp下的指定网站
修改httpd.conf新增端口,如:
#新增8080端口
Listen 0.0.0.0:8080
Listen [::0]:8080
配置虚拟主机,httpd-vhost.conf
<VirtualHost *:8080>
ServerName www.test.com
DocumentRoot "e:/wamp/www/test/public"
<Directory "e:/wamp/www/test/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
此时局域网其他电脑即可通过IP:8080获取网站接口数据了
done: function(res, curr, count){
//进行表头样式设置
$('th').css({'font-weight': 'bold', 'font-size': '15','color': 'orange','background':'linear-gradient(#f2f2f2,#cfcfcf)'});
//遍历各行 处理样式等
for(var i in res.data){
//获取当前行数据
var item = res.data[i];
//如:ID等于1则复选框禁止选择
if(item.id==1){
$('tr[data-index=' + i + '] input[type="checkbox"]').prop('disabled', true); //禁用当前
$('tr[data-index=' + i + '] input[type="checkbox"]').parent('div').css('display', 'none'); //隐藏这个复选框
table.render('checkbox'); // 重新渲染一下checkbox
}
// 02.如果已结算则整行变灰色
if(item.ck23=='ok'){
$("tr[data-index='" + i + "']").attr({"style":"background:#cccccc"});
}
// …… 其他功能
}
}
时间戳转成正常日期的公式:C1=(A1+8*3600)/86400+70*365+19
其中A1表示当时的1249488000时间戳数值,C1就是所需的日期格式,C1单元格属性改成日期格式就可以了。
正常日期转为时间戳格式公式:A1=(C1-70*365-19)*86400-8*3600
其中C1表示正常日期时间格式,A1就是所需的时间戳格式,A1单元格属性日期格式转成常规格式就可以了。