Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
7ead8c9e
Commit
7ead8c9e
authored
Dec 06, 2019
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
90d06dd9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
393 deletions
+1
-393
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
+1
-1
igirl-channel-jdweb/app/base/test.js
+0
-248
igirl-channel-jdweb/app/base/test2.js
+0
-144
No files found.
igirl-channel-jdweb/app/base/controller/impl/trademark/tmqueryCtl.js
View file @
7ead8c9e
...
...
@@ -188,7 +188,7 @@ class tmqueryCtl extends CtlBase {
//ctx.body = "pin=jcloud_pRiHQTd&serviceId=580010&itemCode=FW_GOODS-580010-1&platform=6"
//POST
var
qs
=
require
(
'querystring'
);
var
post_data
=
{
pin
:
"
jcloud_pRiHQTd
"
,
serviceId
:
580010
,
itemCode
:
"FW_GOODS-580010-1"
,
platform
:
6
,
orderNum
:
1
,
articleType
:
1
};
//这是需要提交的数据
var
post_data
=
{
pin
:
"
syaify
"
,
serviceId
:
580010
,
itemCode
:
"FW_GOODS-580010-1"
,
platform
:
6
,
orderNum
:
1
,
articleType
:
1
};
//这是需要提交的数据
var
tmpContent
=
JSON
.
stringify
(
post_data
);
var
tmpContentLength
=
Buffer
.
byteLength
(
tmpContent
);
var
content
=
qs
.
stringify
(
post_data
);
...
...
igirl-channel-jdweb/app/base/test.js
deleted
100644 → 0
View file @
90d06dd9
// var twice = {
// apply:function(target, ctx, args) {
// console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxx");
// console.log(target);
// console.log("ctx",ctx,"args",args);
// console.log(...arguments);
// return Reflect.apply(...arguments) * 2;
// }
// };
class
s
{
async
apply
(
target
,
ctx
,
args
){
console
.
log
(
"xxxxxxxxxxxxxxxxxxxxxxxxxxx"
);
var
rtn
=
await
Reflect
.
apply
(...
arguments
)
*
2
;
console
.
log
(
arguments
);
return
rtn
}
}
class
obj
extends
s
{
async
sum
(
left
,
right
){
return
left
+
right
;
}
}
// var objnew=new obj();
// var proxy = new Proxy(objnew.sum, objnew);
// var y=proxy(5, 6) // 22
// console.log(y.then(n=>console.log(n)));
function
x
(
m
,...
items
){
console
.
log
(
m
);
console
.
log
(...
items
);
console
.
log
(
items
);
}
x
(
2
,
3
,
4
,
5
);
// class A{
// a(params) {
// console.log(params);
// }
// b(params) {
// console.log(params);
// }
// }
// console.log(A.toString());
// var reg1 = /([a-z])*\(.*\)/g;
// var m=A.toString().match(reg1);
// console.log(m);
// var WXPay = require('wx-pay');
// var wxpay = WXPay({
// appid: 'wx6f3ebe44defe336a',
// mch_id: '1232813602',
// partner_key: 'sinotone2014sinotone2014sinotone', //微信商户平台API密钥
// //pfx: fs.readFileSync('./wxpay_cert.p12'), //微信商户平台证书
// //pfx: "sinotone2014sinotone2014sinotone"
// });
// // var out_trade_no='20160203'+Math.random().toString().substr(2, 10);
// // wxpay.createUnifiedOrder({
// // body: '充值兑换宝币',
// // out_trade_no: out_trade_no,
// // total_fee: 1,
// // spbill_create_ip: '192.168.2.210',
// // notify_url: 'http://www.gongsibao.com',
// // trade_type: 'NATIVE',
// // product_id: '1234567890'
// // }, function(err, result){
// // console.log(result);
// // //查询订单
// // //通过微信订单号查
// // wxpay.queryOrder({ out_trade_no:out_trade_no}, function(err, order){
// // console.log(order);
// // });
// //
// // });
// async function queryWxOrder(idkey){
// var p=new Promise((resv,rej)=>{
// wxpay.queryOrder({ out_trade_no:idkey}, function(err, order){
// if(err){
// return rej(err);
// }else{
// return resv(order);
// }
// });
// });
// return p;
// }
// async function testQuery(){
// try{
// var result = await queryWxOrder("d942bc2ccd784034af60c2d92079c897");
// console.log(result);
// }catch(e){
// console.log(e);
// console.log("error.................");
// }
// }
// testQuery();
// 二、框架
// 三、实战
// async function getCacheByKey(k){
// return k;
// }
// async function buildData(data){
// console.log(data);
// console.log("xxxxxxxxxxxxxxxx");
// console.log(data.length);
// var ds=[]
// for(var i=0;i<data.length;i++){
// console.log(i);
// var source={name:""};
// var count=await getCacheByKey(data[i].name);
// source.name=data[i].name;
// source.value=count;
// ds.push(source);
// }
// return ds;
// }
// async function out(){
// var data=[
// {"name":"jy"},
// {"name":"tom"}
// ];
// var ds=await buildData(data);
// console.log(ds);
// }
//
// out();
// async function ok1(){
// var p=new Promise(function(res,rej){
// setTimeout(()=>{
// return res("ok1");
// },2000);
// });
// return p;
// }
// async function ok2(){
// return "ok2";
// }
// async function ok3(){
// var k1=await ok1();
// console.log(k1);
// var k2=await ok2();
// console.log(k2);
// }
// ok3();
// const uuidv4 = require('uuid/v4');
// var u=uuidv4()
// console.log(u.replace(/\-/g,""))
// async function testAsync1(){
// return 5;
// }
//
// async function testAsync2(){
// return 5;
// }
// async function testAsync3(){
// var x= await testAsync1();
// var y= await testAsync2();
// return 5;
// }
// var x=testAsync().then(function(r){
// console.log(r);
// return 6;
// }).then(function(r){
// console.log(r);
// return 7;
// });
// x.then(function(r){
// console.log(r);
// }).catch(function(err){
//
// });
// function getArgs(func){
// //匹配函数括号里的参数
// var args=func.toString().match(/[async|function]\s.*?\(([^)]*)\)/)[1];
// //分解参数成数组
// return args.split(",").map(function (arg){
// //去空格和内联注释
// return arg.replace(/\/\*.*\*\//,"").trim();
// }).filter(function(args) {
// //确保没有undefineds
// return args;
// });
// }
// console.log(convertoss["testMethod"].toString());
// var inObj={a:"hello",b:"ok"}
// var p=convertoss["testMethod"].apply(convertoss,["hello","kkkk"]);
// var args=getArgs(convertoss["testMethod"])
// console.log(args);
//var p=convertoss["testMethod"].call(convertoss,["hello"]);
//var p=Reflect.apply(,convertoss,"hello");
// p.then(function(r){
// console.log(r);
// });
// convertoss.convert2pdf(key).then(function(result){
// console.log(result);
// }).catch(function(e){
// console.log(e);
// });
// var routes=[
// {
// path:'/',components:{
// default:componentFactory("products"),
// // shows:demo
// }
// },
// {
// path:'/products/:id/detail',components:{
// default:componentFactory("detail"),
// //shows:demo
// }
// },
// {
// path:'/platform/apps',components:{
// default:componentFactory("apps"),
// //shows:demo
// }
// },
// {
// path:'/platform/users',components:{
// default:componentFactory("users"),
// //shows:demo
// }
// },
// {
// path:'/platform/op/oplogs',components:{
// default:componentFactory("oplogs"),
// //shows:demo
// }
// },
// ]
igirl-channel-jdweb/app/base/test2.js
deleted
100644 → 0
View file @
90d06dd9
class
TestBase
{
constructor
(){
this
.
apiDoc
=
{
group
:
"逻辑分组"
,
desc
:
"请对当前类进行描述"
,
exam
:
"概要示例"
,
methods
:[]
};
this
.
initClassDoc
();
}
initClassDoc
(){
throw
new
Error
(
`
请定义当前类的API文档,重写initClassDoc方法.
在initClassDoc方法中调用如下方法:
1.descClass(groupName,classDesc,exam)增加当前类的描述和使用示例
2.descMethod(methodName,paramName,paramType,defaultValue,paramDesc)增加方法的说明
`
);
}
descClass
(
groupName
,
classDesc
,
exam
){
this
.
group
=
groupName
;
this
.
apiDoc
.
desc
=
classDesc
;
this
.
apiDoc
.
exam
=
exam
;
}
descMethod
(
methodDesc
,
methodName
,
paramDesc
,
paramName
,
paramType
,
defaultValue
,
rtnTypeDesc
,
rtnType
){
var
mobj
=
this
.
apiDoc
.
methods
.
filter
((
m
)
=>
{
if
(
m
.
name
==
methodName
){
return
true
;
}
else
{
return
false
;
}
})[
0
];
var
param
=
{
pname
:
paramName
,
ptype
:
paramType
,
pdesc
:
paramDesc
,
pdefaultValue
:
defaultValue
,
};
if
(
mobj
!=
null
){
mobj
.
params
.
push
(
param
);
}
else
{
this
.
apiDoc
.
methods
.
push
(
{
methodDesc
:
methodDesc
?
methodDesc
:
""
,
name
:
methodName
,
params
:[
param
],
rtnTypeDesc
:
rtnTypeDesc
,
rtnType
:
rtnType
}
);
}
}
}
class
Test
extends
TestBase
{
constructor
(){
super
();
}
initClassDoc
(){
this
.
descClass
(
"class desc"
,
`
xxxxxx
xxxxx
xxxxxxxx
`
);
this
.
descMethod
(
"hello"
,{
pname
:
"pname1"
,
ptype
:
"int"
,
pdesc
:
"xccccc"
});
this
.
descMethod
(
"hello"
,{
pname
:
"pname2"
,
ptype
:
"str"
,
pdesc
:
"xccccyyyc"
});
}
}
class
Test2
extends
TestBase
{
constructor
(){
super
();
}
initClassDoc
(){
this
.
descClass
(
"class desc222222"
,
`
xxxxxx
xxxxx
xxxxxxxx
`
);
this
.
descMethod
(
"test2hello"
,{
pname
:
"pname1"
,
ptype
:
"int"
,
pdesc
:
"xccccc"
});
this
.
descMethod
(
"world"
,{
pname
:
"pname2"
,
ptype
:
"str"
,
pdesc
:
"xccccyyyc"
});
}
}
class
Test3
extends
TestBase
{
constructor
(){
super
();
}
}
module
.
exports
=
{
cls
:
Test
,
doc
:
new
Test
().
apiDoc
};
var
t1
=
new
Test
();
var
t2
=
new
Test2
();
console
.
log
(
t1
.
apiDoc
);
console
.
log
(
t2
.
apiDoc
);
技术总监
职位描述
岗位职责:
•
负责公司基础平台的设计开发
•
负责公司开发团队的建设
•
负责制定项目技术方案,负责系统的架构设计、优化,参与核心架构部分代码编写;
•
负责软件开发任务的需求分析、技术方案设计、开发计划制定,指导项目团队成员的日常开发工作、解决开发中的技术问题;
•
职位要求
•
财务软件开发经验者优先
•
8
年以上
Java
或
php
互联网开发经验,
5
年以上应用架构经验。
•
熟悉分布式存储、搜索、异步框架、集群与负载均衡,消息中间件等技术;
•
有大型分布式、高并发、高负载、高可用系统架构、设计、开发和调优经验;
•
熟悉各种常用设计模式,能将设计模式应用到日常工作。
•
熟悉至少一种较为常见的主流数据库及
SQL
语言,有一定的
sql
调优经验;熟悉
Linux
操作系统以及常用版本管理软件操作
(
如:
svn
,
git
)
。
•
熟悉至少一种
nosql
数据库
•
计算机相关专业本科以上学历。
•
具有良好的沟通表达能力和团队协作能力。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment