Esempio n. 1
0
 public function autoAwardCorn()
 {
     import("ORG.Huifu.Huifu");
     $huifu = new Huifu();
     $MemberAward = M("member_award")->where("flag='0'")->select();
     foreach ($MemberAward as $val) {
         $members = M("members")->field("usrid")->where(array("id" => $val['recommend_id']))->find();
         $huifu->transfer($val['award_money'], $members['usrid'], $val['ordid']);
         sleep(2);
     }
 }