getMemberInfoByID(36490); account_helper::onRegisterBonus($mem_info,bonus_helper::create_type_sn('300516840071209490'),36485); } public function testPaysuccess_bonus() { account_helper::paysuccess_bonus(36490,500); } public function testOrderCancel() { account_helper::order_cancel('8000000000001603',36490); } public function testOrderSuccess() { account_helper::onOrderSuccess(6422); } public function testPayRefund() { //account_helper::pay_refund(36490,500,'退款红包'); } public function testPaysuccess() { $pay_sn = '910510761110261481'; account_helper::onPaySuccess($pay_sn); } public function testOrderSuccessSys() { $mod = Model('order'); $pay_sn = '910510761110261481'; $order_info = $mod->getOrderInfo(array('pay_sn' => $pay_sn)); $logic_order = Logic('order'); $result = $logic_order->changeOrderStateReceive($order_info,'system','系统','超期未收货系统自动完成订单'); } public function testUpfile() { $file = '/Users/stanley-king/work/PHPProject/shopnc/data/upload/uploadtmp/20161215081131-53be4be9-fe01-50e7-28c0-ded900c9a0f6.jpg'; $ext = exif_imagetype($file); $exif = image_type_to_mime_type($ext); $tagnmae = exif_tagname($ext); $info = new SplFileInfo($file); $type = $info->getType(); $type = $info->getExtension(); $size = $info->getSize(); $tmp_name = $info->getFilename(); } public static function tearDownAfterClass() { } }