add pmql_fetchArr() and pmql_fetchRows() func
remove test() func
add comment
add reduplicate data check in logOrderInfo() func
add in_array() func;
add formatOrderArr() func;
and some small change
fixed array can not assign bug.
add array number check;
add natification send when check history order has wrong;
add debug func arrdebug() use to print per item of an array
add update2closed() func;
update getCurrTime() func to getTime();
add a func logSwapRate();
fix some bug;
func logSwap() test ok
finished log closed order info to db
finished new opened order into database;
reuse update2db() func to update closed order and opened order;
remove debug code;
add a lot comments
add commission update in update2closed() func
update, but can not open ring yet
update comment
*add func checkOrdInDb();
*adjust history order condi
add fpi sound alert